diff options
| author | hathach <[email protected]> | 2013-01-22 18:19:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-22 18:19:05 +0700 |
| commit | b81561b4369d75108040740570774f0712793d0d (patch) | |
| tree | c05c691112095d2151a56b116220b856539df3eb /tinyusb/class | |
| parent | 3ffda2033a55093a1b1667ed22f523a9a8a6a3d4 (diff) | |
use unsigned char instead of char for error string
use #if 0 instead of // for remove code
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/cdc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tinyusb/class/cdc.c b/tinyusb/class/cdc.c index d6b0ec518..138666f45 100644 --- a/tinyusb/class/cdc.c +++ b/tinyusb/class/cdc.c @@ -188,12 +188,14 @@ uint16_t tusb_cdc_recv(uint8_t* buffer, uint16_t max) return fifo_read_n(&ffRX, buffer, max); } +#if 0 // ROM driver bug: cannot hook this to CIC_GetRequest // Need this to implement GetLineCode & detect -//ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length) -//{ -// return LPC_OK; -//} +ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length) +{ + return LPC_OK; +} +#endif /**************************************************************************/ /*! |
