From e658e67ebefb94ee001dc491ea01c607300490b7 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 29 Mar 2013 00:20:27 +0700 Subject: fix the damn bug within 10 line of code in keyboard_app.c --- tinyusb/hal/hal_lpc43xx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tinyusb/hal') diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c index 8cee945fc..7c5678671 100644 --- a/tinyusb/hal/hal_lpc43xx.c +++ b/tinyusb/hal/hal_lpc43xx.c @@ -41,6 +41,7 @@ #if MCU == MCU_LPC43XX #include "lpc43xx_cgu.h" +#include "lpc43xx_scu.h" enum { LPC43XX_USBMODE_DEVICE = 2, @@ -63,6 +64,7 @@ tusb_error_t hal_init(void) //------------- reset controller & set role -------------// hcd_controller_reset(0); // TODO where to place prototype, USB1 + LPC_USB0->USBMODE_H = LPC43XX_USBMODE_HOST | (LPC43XX_USBMODE_VBUS_HIGH << 5); hal_interrupt_enable(0); // TODO USB1 -- cgit v1.3.1