seperate tusb_task() to tud_task() and tuh_task()

tusb_task() still exists for backward compatible
This commit is contained in:
hathach
2018-12-13 14:51:37 +07:00
parent af1ffe4675
commit 1c49c479ca
13 changed files with 64 additions and 49 deletions

View File

@@ -68,17 +68,6 @@ bool tusb_init(void)
return TUSB_ERROR_NONE;
}
void tusb_task(void)
{
#if TUSB_OPT_HOST_ENABLED
usbh_task();
#endif
#if TUSB_OPT_DEVICE_ENABLED
usbd_task();
#endif
}
/*------------------------------------------------------------------*/
/* Debug
*------------------------------------------------------------------*/