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/device/usbd.c | |
| parent | 14cebcb5f57665182a311766364e997756614db5 (diff) | |
clean up helper func
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 89dd4b722..146f8ec89 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -274,7 +274,7 @@ static tusb_error_t usbd_main_st(void) tusb_error_t err;
err = TUSB_ERROR_NONE;
- memclr_(&event, sizeof(usbd_task_event_t));
+ tu_memclr(&event, sizeof(usbd_task_event_t));
osal_queue_receive(_usbd_q, &event, OSAL_TIMEOUT_WAIT_FOREVER, &err);
@@ -318,7 +318,7 @@ static tusb_error_t usbd_main_st(void) static void usbd_reset(uint8_t rhport)
{
- varclr_(&_usbd_dev);
+ tu_varclr(&_usbd_dev);
memset(_usbd_dev.itf2drv, 0xff, sizeof(_usbd_dev.itf2drv)); // invalid mapping
memset(_usbd_dev.ep2drv , 0xff, sizeof(_usbd_dev.ep2drv )); // invalid mapping
|
