From b6feda4eaed9ec20a1a077c2b734894bbf38a501 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Mon, 6 Jun 2022 08:13:33 -0400 Subject: [PATCH] lpc176x: add support for canboot usb Signed-off-by: Eric Callahan --- src/lpc176x/usbserial.c | 2 ++ 1 file changed, 2 insertions(+) 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);