correct cdc line coding memory align

This commit is contained in:
hathach 2018-08-15 17:57:33 +07:00
parent cf43a6b53b
commit d996bd5295
1 changed files with 2 additions and 2 deletions

View File

@ -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