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/custom/custom_host.c | |
| parent | 14cebcb5f57665182a311766364e997756614db5 (diff) | |
clean up helper func
Diffstat (limited to 'src/class/custom/custom_host.c')
| -rw-r--r-- | src/class/custom/custom_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/custom/custom_host.c b/src/class/custom/custom_host.c index ad3315980..329012fda 100644 --- a/src/class/custom/custom_host.c +++ b/src/class/custom/custom_host.c @@ -104,7 +104,7 @@ tusb_error_t tusbh_custom_write(uint8_t dev_addr, uint16_t vendor_id, uint16_t p //--------------------------------------------------------------------+ void cush_init(void) { - memclr_(&custom_interface, sizeof(custom_interface_info_t) * CFG_TUSB_HOST_DEVICE_MAX); + tu_memclr(&custom_interface, sizeof(custom_interface_info_t) * CFG_TUSB_HOST_DEVICE_MAX); } tusb_error_t cush_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interface_desc, uint16_t *p_length) @@ -152,7 +152,7 @@ void cush_close(uint8_t dev_addr) err2 = hcd_pipe_close( p_interface->pipe_out ); } - memclr_(p_interface, sizeof(custom_interface_info_t)); + tu_memclr(p_interface, sizeof(custom_interface_info_t)); TU_ASSERT(err1 == TUSB_ERROR_NONE && err2 == TUSB_ERROR_NONE, (void) 0 ); } |
