Merge pull request #2047 from jbtheou/master
cdc: fix line_coding aligment
This commit is contained in:
@@ -53,7 +53,7 @@ typedef struct
|
|||||||
|
|
||||||
/*------------- From this point, data is not cleared by bus reset -------------*/
|
/*------------- From this point, data is not cleared by bus reset -------------*/
|
||||||
char wanted_char;
|
char wanted_char;
|
||||||
cdc_line_coding_t line_coding;
|
TU_ATTR_ALIGNED(4) cdc_line_coding_t line_coding;
|
||||||
|
|
||||||
// FIFO
|
// FIFO
|
||||||
tu_fifo_t rx_ff;
|
tu_fifo_t rx_ff;
|
||||||
|
@@ -58,8 +58,8 @@ typedef struct {
|
|||||||
cdc_acm_capability_t acm_capability;
|
cdc_acm_capability_t acm_capability;
|
||||||
uint8_t ep_notif;
|
uint8_t ep_notif;
|
||||||
|
|
||||||
cdc_line_coding_t line_coding; // Baudrate, stop bits, parity, data width
|
uint8_t line_state; // DTR (bit0), RTS (bit1)
|
||||||
uint8_t line_state; // DTR (bit0), RTS (bit1)
|
TU_ATTR_ALIGNED(4) cdc_line_coding_t line_coding; // Baudrate, stop bits, parity, data width
|
||||||
|
|
||||||
tuh_xfer_cb_t user_control_cb;
|
tuh_xfer_cb_t user_control_cb;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user