mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
add code for disconnect/connect (not tested)
This commit is contained in:
parent
3f8b9c59dd
commit
89f99426fc
@ -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 $<
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user