use unsigned char instead of char for error string

use #if 0 instead of // for remove code
This commit is contained in:
hathach
2013-01-22 18:19:05 +07:00
parent 3ffda2033a
commit b81561b436
3 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -188,12 +188,14 @@ uint16_t tusb_cdc_recv(uint8_t* buffer, uint16_t max)
return fifo_read_n(&ffRX, buffer, max); return fifo_read_n(&ffRX, buffer, max);
} }
#if 0
// ROM driver bug: cannot hook this to CIC_GetRequest // ROM driver bug: cannot hook this to CIC_GetRequest
// Need this to implement GetLineCode & detect // 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) ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length)
//{ {
// return LPC_OK; return LPC_OK;
//} }
#endif
/**************************************************************************/ /**************************************************************************/
/*! /*!
+1 -1
View File
@@ -39,7 +39,7 @@
#if TUSB_CFG_DEBUG == 3 #if TUSB_CFG_DEBUG == 3
char const* const TUSB_ErrorStr[] = unsigned char const* const TUSB_ErrorStr[] =
{ {
ERROR_TABLE(ERROR_STRING) ERROR_TABLE(ERROR_STRING)
0 0
+1 -1
View File
@@ -76,7 +76,7 @@ typedef enum {
#if TUSB_CFG_DEBUG == 3 #if TUSB_CFG_DEBUG == 3
/// Enum to String for debugging purposes. Only available if \ref TUSB_CFG_DEBUG > 0 /// Enum to String for debugging purposes. Only available if \ref TUSB_CFG_DEBUG > 0
extern char const* const TUSB_ErrorStr[]; extern unsigned char const* const TUSB_ErrorStr[];
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus