mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
add aligned(4) for cdc_line_coding_t
This commit is contained in:
parent
8f47976639
commit
190acc1fb0
@ -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;
|
||||||
CFG_TUSB_MEM_ALIGN 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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user