fix the damn bug within 10 line of code in keyboard_app.c

This commit is contained in:
hathach
2013-03-29 00:20:27 +07:00
parent d95c6cf2e0
commit e658e67ebe
4 changed files with 22 additions and 16 deletions

View File

@@ -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