summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-29 00:20:27 +0700
committerhathach <[email protected]>2013-03-29 00:20:27 +0700
commite658e67ebefb94ee001dc491ea01c607300490b7 (patch)
treebf657aaead73a8b5f03335044315b8b08653e152 /tinyusb/hal
parentd95c6cf2e016257aaa74e372fca350ce96f6a90b (diff)
fix the damn bug within 10 line of code in keyboard_app.c
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal_lpc43xx.c2
1 files changed, 2 insertions, 0 deletions
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