mirror of https://github.com/Desuuuu/klipper.git
lpc176x: add support for canboot usb
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
f42ce3e2fd
commit
b6feda4eae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue