From 3eb7465e5ee8ea6298fcf134f853174fd9560a4c Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 10 Dec 2012 14:58:25 +0700 Subject: abstract usb enable/disable interrupt to hal layer --- tinyusb/device/dcd.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'tinyusb/device') 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 -- cgit v1.3.1