summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-08-15 17:57:33 +0700
committerhathach <[email protected]>2018-08-15 17:57:33 +0700
commitd996bd529591c98f366ddedbde63ac21755996e2 (patch)
treef633cb34bad0ca6b7c75720566949ad85c2ecd7f /src/class/cdc
parentcf43a6b53bd6bdeb381477b1c323abcc69158c42 (diff)
correct cdc line coding memory align
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c
index 175e78d2f..075a7f8db 100644
--- a/src/class/cdc/cdc_device.c
+++ b/src/class/cdc/cdc_device.c
@@ -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