diff options
Diffstat (limited to 'usb-dfu-experiment')
-rw-r--r-- | usb-dfu-experiment/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usb-dfu-experiment/main.c b/usb-dfu-experiment/main.c index e9ef876..2fdd981 100644 --- a/usb-dfu-experiment/main.c +++ b/usb-dfu-experiment/main.c @@ -334,7 +334,9 @@ int USBDFU_handle_upload(uint8_t altif, unsigned int offset, if (req_len < real_len) real_len = req_len; + LED_Set(USBD_LEDOTHER); memcpy(buf, addr, real_len); + LED_Clear(USBD_LEDOTHER); return real_len; } @@ -368,7 +370,9 @@ int USBDFU_handle_dnload(uint8_t altif, unsigned int offset, case ALTIF_FPGA: /* SAM3U Errata 46.2.1.3 */ SetFlashWaitState(6); + LED_Set(USBD_LEDOTHER); rc = FLASHD_Write(addr, buf, len); + LED_Clear(USBD_LEDOTHER); /* SAM3U Errata 46.2.1.3 */ SetFlashWaitState(2); if (rc != 0) { |