diff options
Diffstat (limited to 'tinyusb/hal/hal_lpc13uxx.c')
| -rw-r--r-- | tinyusb/hal/hal_lpc13uxx.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c index 9f3361d35..afa67ff21 100644 --- a/tinyusb/hal/hal_lpc13uxx.c +++ b/tinyusb/hal/hal_lpc13uxx.c @@ -41,6 +41,18 @@ #if TUSB_CFG_MCU == MCU_LPC13UXX
+void hal_interrupt_enable(uint8_t coreid)
+{
+ (void) coreid; // discard compiler's warning
+ NVIC_EnableIRQ(USB_IRQ_IRQn);
+}
+
+void hal_interrupt_disable(uint8_t coreid)
+{
+ (void) coreid; // discard compiler's warning
+ NVIC_DisableIRQ(USB_IRQ_IRQn);
+}
+
tusb_error_t hal_init(void)
{
// TODO remove magic number
@@ -65,4 +77,7 @@ void USB_IRQHandler(void) tusb_isr(0);
}
+
+
+
#endif
|
