diff options
| author | hathach <[email protected]> | 2013-05-29 15:23:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-29 15:23:07 +0700 |
| commit | d5836751d913e2f7cb90bb1a4cdc95274d585a48 (patch) | |
| tree | c06be0e7418e044c82dab0888a5de47c7cd5fbb7 /tinyusb | |
| parent | dda0808ebb5ca8cba6c9440c61bb5205b0a62b08 (diff) | |
keyboard example works with lpc1347 xpresso
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/device/dcd_nxp_romdriver.c | 4 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc13uxx.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tinyusb/device/dcd_nxp_romdriver.c b/tinyusb/device/dcd_nxp_romdriver.c index 34dfa5e35..2aa9201be 100644 --- a/tinyusb/device/dcd_nxp_romdriver.c +++ b/tinyusb/device/dcd_nxp_romdriver.c @@ -172,12 +172,12 @@ tusb_error_t dcd_controller_reset(uint8_t coreid) void dcd_controller_connect(uint8_t coreid) { -// ROM_API->hw->Connect(g_hUsb, 1); + ROM_API->hw->Connect(g_hUsb, 1); } void dcd_isr(uint8_t coreid) { -// ROM_API->hw->ISR(g_hUsb); + ROM_API->hw->ISR(g_hUsb); } #endif 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 |
