aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Callahan <arksine.code@gmail.com>2022-06-06 08:13:33 -0400
committerKevinOConnor <kevin@koconnor.net>2022-06-10 11:23:04 -0400
commitb6feda4eaed9ec20a1a077c2b734894bbf38a501 (patch)
tree243d1085577fbefb17cdf0cf7f97f7e89aa42942
parentf42ce3e2fd6de3129e196507b7c862cb511f62de (diff)
downloadkutter-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>
-rw-r--r--src/lpc176x/usbserial.c2
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);