mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-18 21:41:12 +00:00
correct cdc line coding memory align
This commit is contained in:
parent
cf43a6b53b
commit
d996bd5295
@ -62,8 +62,8 @@ typedef struct
|
||||
uint8_t line_state;
|
||||
|
||||
/*------------- From this point, data is not cleared by bus reset -------------*/
|
||||
cdc_line_coding_t line_coding;
|
||||
char wanted_char;
|
||||
CFG_TUSB_MEM_ALIGN cdc_line_coding_t line_coding;
|
||||
|
||||
// FIFO
|
||||
tu_fifo_t rx_ff;
|
||||
@ -78,7 +78,7 @@ typedef struct
|
||||
|
||||
}cdcd_interface_t;
|
||||
|
||||
#define ITF_BUS_RESET_SZ offsetof(cdcd_interface_t, line_coding)
|
||||
#define ITF_BUS_RESET_SZ offsetof(cdcd_interface_t, wanted_char)
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// INTERNAL OBJECT & FUNCTION DECLARATION
|
||||
|
Loading…
x
Reference in New Issue
Block a user