summaryrefslogtreecommitdiff
path: root/src/class/msc/msc_host.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-10-23 12:19:32 +0700
committerhathach <[email protected]>2018-10-23 12:19:32 +0700
commitc7340f4b0eb8dcf15fa93f6bf6589a94fb59dc95 (patch)
treeebce72906cf8896a362c87a168bfd9d66e3f4543 /src/class/msc/msc_host.c
parent14cebcb5f57665182a311766364e997756614db5 (diff)
clean up helper func
Diffstat (limited to 'src/class/msc/msc_host.c')
-rw-r--r--src/class/msc/msc_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/msc/msc_host.c b/src/class/msc/msc_host.c
index 7e6396389..9250b8df7 100644
--- a/src/class/msc/msc_host.c
+++ b/src/class/msc/msc_host.c
@@ -288,7 +288,7 @@ tusb_error_t tuh_msc_write10(uint8_t dev_addr, uint8_t lun, void const * p_buffe
//--------------------------------------------------------------------+
void msch_init(void)
{
- memclr_(msch_data, sizeof(msch_interface_t)*CFG_TUSB_HOST_DEVICE_MAX);
+ tu_memclr(msch_data, sizeof(msch_interface_t)*CFG_TUSB_HOST_DEVICE_MAX);
msch_sem_hdl = osal_semaphore_create(1, 0);
}
@@ -416,7 +416,7 @@ void msch_close(uint8_t dev_addr)
(void) hcd_pipe_close(msch_data[dev_addr-1].bulk_in);
(void) hcd_pipe_close(msch_data[dev_addr-1].bulk_out);
- memclr_(&msch_data[dev_addr-1], sizeof(msch_interface_t));
+ tu_memclr(&msch_data[dev_addr-1], sizeof(msch_interface_t));
osal_semaphore_reset(msch_sem_hdl);
tuh_msc_unmounted_cb(dev_addr); // invoke Application Callback