summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-17 11:48:09 +0700
committerhathach <[email protected]>2020-04-17 11:48:49 +0700
commit89f99426fc63a907c9fd55cc78d62d9bf88efb55 (patch)
treeed51c07a22395e12840b2c89cdf41c7f2b5a2122
parent3f8b9c59ddb69f67a5a9105cca488c4ae581cecf (diff)
add code for disconnect/connect (not tested)
-rw-r--r--hw/bsp/spresense/board.mk9
-rw-r--r--src/portable/sony/cxd56/dcd_cxd56.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/hw/bsp/spresense/board.mk b/hw/bsp/spresense/board.mk
index c6b5ce12a..e3e3b6473 100644
--- a/hw/bsp/spresense/board.mk
+++ b/hw/bsp/spresense/board.mk
@@ -43,7 +43,10 @@ LDFLAGS += \
VENDOR = sony
CHIP_FAMILY = cxd56
+$(BUILD)/$(BOARD)-firmware.spk: $(BUILD)/$(BOARD)-firmware.elf
+ @echo CREATE $@
+ @$(SPRESENSE_SDK)/sdk/tools/linux/mkspk -c 2 $^ nuttx $@
+
# flash
-flash:
- $(SPRESENSE_SDK)/sdk/tools/linux/mkspk -c 2 $(BUILD)/spresense-firmware.elf nuttx $(BUILD)/spresense-firmware.spk
- $(SPRESENSE_SDK)/sdk/tools/flash.sh -c /dev/ttyUSB0 $(BUILD)/spresense-firmware.spk
+flash: $(BUILD)/$(BOARD)-firmware.spk
+ @$(SPRESENSE_SDK)/sdk/tools/flash.sh -c /dev/ttyUSB0 $<
diff --git a/src/portable/sony/cxd56/dcd_cxd56.c b/src/portable/sony/cxd56/dcd_cxd56.c
index 57158838f..ca6a8be20 100644
--- a/src/portable/sony/cxd56/dcd_cxd56.c
+++ b/src/portable/sony/cxd56/dcd_cxd56.c
@@ -205,11 +205,13 @@ void dcd_remote_wakeup(uint8_t rhport)
void dcd_connect(uint8_t rhport)
{
(void) rhport;
+// DEV_CONNECT(usbdev);
}
void dcd_disconnect(uint8_t rhport)
{
(void) rhport;
+// DEV_DISCONNECT(usbdev);
}
#endif