diff options
| author | hathach <[email protected]> | 2013-01-17 14:40:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-17 14:40:46 +0700 |
| commit | c16632da0bf8d042388018c667cfbc176ed56436 (patch) | |
| tree | ceb00f2f4207ba42928430239a61ce607b5bcc02 /tinyusb/class | |
| parent | 480ddb4fecb96c79cc046f3e4d03ec73a04abca0 (diff) | |
add UART support for ea4357 (tested)
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/cdc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tinyusb/class/cdc.c b/tinyusb/class/cdc.c index 51dcc8bfb..5fc1cd5fd 100644 --- a/tinyusb/class/cdc.c +++ b/tinyusb/class/cdc.c @@ -316,8 +316,11 @@ TUSB_Error_t tusb_cdc_configured(USBD_HANDLE_T hUsb) #elif MCU == MCU_LPC13UXX fifo_init (&ffTX, qBuffer[0], CDC_BUFFER_SIZE, false, USB_IRQ_IRQn); // TX is non-overwritable fifo_init (&ffRX, qBuffer[1], CDC_BUFFER_SIZE, true, USB_IRQ_IRQn); // RX is overwritable + #elif MCU == MCU_LPC43XX + fifo_init (&ffTX, qBuffer[0], CDC_BUFFER_SIZE, false, USB0_IRQn); // TODO USB1 TX is non-overwritable + fifo_init (&ffRX, qBuffer[1], CDC_BUFFER_SIZE, true, USB0_IRQn); // RX is overwritable #else - #error "usb_cdc.c: No MCU defined" + #error No MCU defined" // TODO asbtract MCU #endif return tERROR_NONE; |
