diff options
| author | hathach <[email protected]> | 2013-05-29 14:39:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-29 14:39:14 +0700 |
| commit | dda0808ebb5ca8cba6c9440c61bb5205b0a62b08 (patch) | |
| tree | bb270d96b6e7345bd0506e1c432412414ed67271 /tinyusb/device/dcd.c | |
| parent | 1e5bd82af28c6005fa0ecf008e44322a6ee46461 (diff) | |
fix lpcxpresso1347 board_leds
temp change USBD_API to ROM_API
add lpc13xx device support
fix romdriver pointer
able to init rom driver
Diffstat (limited to 'tinyusb/device/dcd.c')
| -rw-r--r-- | tinyusb/device/dcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/device/dcd.c b/tinyusb/device/dcd.c index c0115c4e5..638ecdfe9 100644 --- a/tinyusb/device/dcd.c +++ b/tinyusb/device/dcd.c @@ -37,7 +37,7 @@ #include "dcd.h" -#ifdef TUSB_CFG_DEVICE +#if 0 #include "descriptors.h" // TODO refractor later @@ -109,7 +109,7 @@ tusb_error_t dcd_init(uint8_t coreid) }; /* USB hardware core initialization */ - ASSERT(LPC_OK == USBD_API->hw->Init(&g_hUsb, &DeviceDes, &usb_param), TUSB_ERROR_FAILED); + ASSERT(LPC_OK == ROM_API->hw->Init(&g_hUsb, &DeviceDes, &usb_param), TUSB_ERROR_FAILED); membase += (memsize - usb_param.mem_size); memsize = usb_param.mem_size; @@ -135,7 +135,7 @@ tusb_error_t dcd_init(uint8_t coreid) hal_interrupt_enable(); /* Enable the USB interrupt */ /* Perform USB soft connect */ - USBD_API->hw->Connect(g_hUsb, 1); + ROM_API->hw->Connect(g_hUsb, 1); #endif return TUSB_ERROR_NONE; |
