diff options
| author | hathach <[email protected]> | 2018-10-23 12:19:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-10-23 12:19:32 +0700 |
| commit | c7340f4b0eb8dcf15fa93f6bf6589a94fb59dc95 (patch) | |
| tree | ebce72906cf8896a362c87a168bfd9d66e3f4543 /src/class/cdc/cdc_device.c | |
| parent | 14cebcb5f57665182a311766364e997756614db5 (diff) | |
clean up helper func
Diffstat (limited to 'src/class/cdc/cdc_device.c')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 70d51c258..06530bc7a 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -185,7 +185,7 @@ bool tud_cdc_n_write_flush (uint8_t itf) //--------------------------------------------------------------------+
void cdcd_init(void)
{
- arrclr_( _cdcd_itf );
+ tu_memclr(_cdcd_itf, sizeof(_cdcd_itf));
for(uint8_t i=0; i<CFG_TUD_CDC; i++)
{
@@ -209,7 +209,7 @@ void cdcd_reset(uint8_t rhport) for(uint8_t i=0; i<CFG_TUD_CDC; i++)
{
- memclr_(&_cdcd_itf[i], ITF_BUS_RESET_SZ);
+ tu_memclr(&_cdcd_itf[i], ITF_BUS_RESET_SZ);
tu_fifo_clear(&_cdcd_itf[i].rx_ff);
tu_fifo_clear(&_cdcd_itf[i].tx_ff);
}
|
