summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-10 14:58:25 +0700
committerhathach <[email protected]>2012-12-10 14:58:25 +0700
commit3eb7465e5ee8ea6298fcf134f853174fd9560a4c (patch)
tree5036198df7331ed5430ac1c2b664fd50ec49b1cf /tinyusb/device
parentb52b3b1cef3e8415542922b41db436202af340bf (diff)
abstract usb enable/disable interrupt to hal layer
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/dcd.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tinyusb/device/dcd.c b/tinyusb/device/dcd.c
index 0310e7643..ee4ce361c 100644
--- a/tinyusb/device/dcd.c
+++ b/tinyusb/device/dcd.c
@@ -135,13 +135,8 @@ 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
+ hal_interrupt_enable(); /* Enable the USB interrupt */
+
/* Perform USB soft connect */
USBD_API->hw->Connect(g_hUsb, 1);
#endif