Merge pull request #2047 from jbtheou/master

cdc: fix line_coding aligment
This commit is contained in:
Ha Thach 2023-04-28 11:25:53 +07:00 committed by GitHub
commit a41ab41b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ typedef struct
/*------------- From this point, data is not cleared by bus reset -------------*/
char wanted_char;
cdc_line_coding_t line_coding;
TU_ATTR_ALIGNED(4) cdc_line_coding_t line_coding;
// FIFO
tu_fifo_t rx_ff;

View File

@ -58,8 +58,8 @@ typedef struct {
cdc_acm_capability_t acm_capability;
uint8_t ep_notif;
cdc_line_coding_t line_coding; // Baudrate, stop bits, parity, data width
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;