keyboard example works with lpc1347 xpresso

This commit is contained in:
hathach
2013-05-29 15:23:07 +07:00
parent dda0808ebb
commit d5836751d9
4 changed files with 15 additions and 7 deletions

View File

@@ -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

View File

@@ -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