diff options
| author | hathach <[email protected]> | 2012-12-07 16:22:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-12-07 16:22:47 +0700 |
| commit | cd74f4f0ed9750f0019b0b66b5d921d68b4ba356 (patch) | |
| tree | 9b8541103dfc33603e4ab5050d87245731b3e482 /tinyusb/device | |
| parent | cc45f35d706ee9388be422d9a89ab204fac2a591 (diff) | |
work with lpc11u37 (lpc11uxx) on kevin's board
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/dcd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tinyusb/device/dcd.c b/tinyusb/device/dcd.c index b3b97faf1..0310e7643 100644 --- a/tinyusb/device/dcd.c +++ b/tinyusb/device/dcd.c @@ -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 |
