diff options
author | Eric Callahan <arksine.code@gmail.com> | 2022-06-06 08:13:33 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2022-06-10 11:23:04 -0400 |
commit | b6feda4eaed9ec20a1a077c2b734894bbf38a501 (patch) | |
tree | 243d1085577fbefb17cdf0cf7f97f7e89aa42942 /src/lpc176x | |
parent | f42ce3e2fd6de3129e196507b7c862cb511f62de (diff) | |
download | kutter-b6feda4eaed9ec20a1a077c2b734894bbf38a501.tar.gz kutter-b6feda4eaed9ec20a1a077c2b734894bbf38a501.tar.xz kutter-b6feda4eaed9ec20a1a077c2b734894bbf38a501.zip |
lpc176x: add support for canboot usb
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'src/lpc176x')
-rw-r--r-- | src/lpc176x/usbserial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lpc176x/usbserial.c b/src/lpc176x/usbserial.c index 95ce6e74..bbb90438 100644 --- a/src/lpc176x/usbserial.c +++ b/src/lpc176x/usbserial.c @@ -8,6 +8,7 @@ #include "autoconf.h" // CONFIG_SMOOTHIEWARE_BOOTLOADER #include "board/armcm_boot.h" // armcm_enable_irq #include "board/armcm_timer.h" // udelay +#include "board/armcm_reset.h" // try_request_canboot #include "board/irq.h" // irq_disable #include "board/misc.h" // timer_read_time #include "byteorder.h" // cpu_to_le32 @@ -250,6 +251,7 @@ usb_request_bootloader(void) { if (!CONFIG_SMOOTHIEWARE_BOOTLOADER) return; + try_request_canboot(); // Disable USB and pause for 5ms so host recognizes a disconnect irq_disable(); sie_cmd_write(SIE_CMD_SET_DEVICE_STATUS, 0); |