work with lpc11u37 (lpc11uxx) on kevin's board

This commit is contained in:
hathach
2012-12-07 16:22:47 +07:00
parent cc45f35d70
commit cd74f4f0ed
10 changed files with 1057 additions and 42 deletions

View File

@@ -135,9 +135,13 @@ TUSB_Error_t dcd_init(uint8_t coreid)
&membase , &memsize) );
#endif
// FIXME abstract to hal
/* Enable the USB interrupt */
#if MCU == MCU_LPC13UXX
NVIC_EnableIRQ(USB_IRQ_IRQn);
#elif MCU == MCU_LPC11UXX
NVIC_EnableIRQ(USB_IRQn);
#endif
/* Perform USB soft connect */
USBD_API->hw->Connect(g_hUsb, 1);
#endif