mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
fix typo in cdc line coding enum
This commit is contained in:
parent
41e2da79f4
commit
aedc92f2d3
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
|
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
|
||||||
// bit rate = 115200, 1 stop bit, no parity, 8 bit data width
|
// bit rate = 115200, 1 stop bit, no parity, 8 bit data width
|
||||||
#define CFG_TUH_CDC_LINE_CODING_ON_ENUM { 115200, CDC_LINE_CONDING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
|
#define CFG_TUH_CDC_LINE_CODING_ON_ENUM { 115200, CDC_LINE_CODING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
|
|
||||||
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
|
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
|
||||||
// bit rate = 115200, 1 stop bit, no parity, 8 bit data width
|
// bit rate = 115200, 1 stop bit, no parity, 8 bit data width
|
||||||
#define CFG_TUH_CDC_LINE_CODING_ON_ENUM { 115200, CDC_LINE_CONDING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
|
#define CFG_TUH_CDC_LINE_CODING_ON_ENUM { 115200, CDC_LINE_CODING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -182,21 +182,23 @@ typedef enum
|
|||||||
CDC_REQUEST_MDLM_SEMANTIC_MODEL = 0x60,
|
CDC_REQUEST_MDLM_SEMANTIC_MODEL = 0x60,
|
||||||
}cdc_management_request_t;
|
}cdc_management_request_t;
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
CDC_CONTROL_LINE_STATE_DTR = 0x01,
|
CDC_CONTROL_LINE_STATE_DTR = 0x01,
|
||||||
CDC_CONTROL_LINE_STATE_RTS = 0x02,
|
CDC_CONTROL_LINE_STATE_RTS = 0x02,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
CDC_LINE_CODING_STOP_BITS_1 = 0, // 1 bit
|
||||||
CDC_LINE_CONDING_STOP_BITS_1 = 0, // 1 bit
|
CDC_LINE_CODING_STOP_BITS_1_5 = 1, // 1.5 bits
|
||||||
CDC_LINE_CONDING_STOP_BITS_1_5 = 1, // 1.5 bits
|
CDC_LINE_CODING_STOP_BITS_2 = 2, // 2 bits
|
||||||
CDC_LINE_CONDING_STOP_BITS_2 = 2, // 2 bits
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
// TODO Backward compatible for typos. Maybe removed in the future release
|
||||||
{
|
#define CDC_LINE_CONDING_STOP_BITS_1 CDC_LINE_CODING_STOP_BITS_1
|
||||||
|
#define CDC_LINE_CONDING_STOP_BITS_1_5 CDC_LINE_CODING_STOP_BITS_1_5
|
||||||
|
#define CDC_LINE_CONDING_STOP_BITS_2 CDC_LINE_CODING_STOP_BITS_2
|
||||||
|
|
||||||
|
enum {
|
||||||
CDC_LINE_CODING_PARITY_NONE = 0,
|
CDC_LINE_CODING_PARITY_NONE = 0,
|
||||||
CDC_LINE_CODING_PARITY_ODD = 1,
|
CDC_LINE_CODING_PARITY_ODD = 1,
|
||||||
CDC_LINE_CODING_PARITY_EVEN = 2,
|
CDC_LINE_CODING_PARITY_EVEN = 2,
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
|
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
|
||||||
//#ifndef CFG_TUH_CDC_LINE_CODING_ON_ENUM
|
//#ifndef CFG_TUH_CDC_LINE_CODING_ON_ENUM
|
||||||
//#define CFG_TUH_CDC_LINE_CODING_ON_ENUM { 115200, CDC_LINE_CONDING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
|
//#define CFG_TUH_CDC_LINE_CODING_ON_ENUM { 115200, CDC_LINE_CODING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
// RX FIFO size
|
// RX FIFO size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user