summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-05-29 15:23:07 +0700
committerhathach <[email protected]>2013-05-29 15:23:07 +0700
commitd5836751d913e2f7cb90bb1a4cdc95274d585a48 (patch)
treec06be0e7418e044c82dab0888a5de47c7cd5fbb7 /tinyusb/hal
parentdda0808ebb5ca8cba6c9440c61bb5205b0a62b08 (diff)
keyboard example works with lpc1347 xpresso
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal_lpc13uxx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c
index dd59e2c64..8a9503e23 100644
--- a/tinyusb/hal/hal_lpc13uxx.c
+++ b/tinyusb/hal/hal_lpc13uxx.c
@@ -54,7 +54,14 @@ tusb_error_t hal_init()
LPC_IOCON->PIO0_6 &= ~0x07;
LPC_IOCON->PIO0_6 |= (0x01<<0); /* Secondary function SoftConn */
+ hal_interrupt_enable(0);
+
return TUSB_ERROR_NONE;
}
+void USB_IRQHandler(void)
+{
+ tusb_isr(0);
+}
+
#endif