diff options
| author | hathach <[email protected]> | 2018-03-02 15:20:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-02 15:20:55 +0700 |
| commit | 4097d022542708ee2bc441552679834477a58cf6 (patch) | |
| tree | 7079fc373aec266dd418c31a465fabed01af4574 /tinyusb/hal/hal_lpc13uxx.c | |
| parent | b5f17fd8235b66b0137c79bf7abd26de4e77d3f7 (diff) | |
refactor hal
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
|
