add aligned(4) for cdc_line_coding_t

This commit is contained in:
hathach 2023-04-28 11:12:03 +07:00
parent 8f47976639
commit 190acc1fb0
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;
CFG_TUSB_MEM_ALIGN 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)
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;