use tud_inited() instead of tusb_inited()

This commit is contained in:
hathach 2023-03-22 09:23:11 +07:00
parent a97f39151e
commit 0921edaf59
3 changed files with 4 additions and 4 deletions

View File

@ -450,7 +450,7 @@ static void usbd_reset(uint8_t rhport)
bool tud_task_event_ready(void)
{
// Skip if stack is not initialized
if ( !tusb_inited() ) return false;
if ( !tud_inited() ) return false;
return !osal_queue_empty(_usbd_q);
}
@ -478,7 +478,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr)
(void) in_isr; // not implemented yet
// Skip if stack is not initialized
if ( !tusb_inited() ) return;
if ( !tud_inited() ) return;
// Loop until there is no more events in the queue
while (1)

View File

@ -197,7 +197,7 @@ void setUp(void)
dcd_int_disable_Ignore();
dcd_int_enable_Ignore();
if ( !tusb_inited() )
if ( !tud_inited() )
{
dcd_init_Expect(rhport);
tusb_init();

View File

@ -124,7 +124,7 @@ void setUp(void)
dcd_int_disable_Ignore();
dcd_int_enable_Ignore();
if ( !tusb_inited() )
if ( !tud_inited() )
{
mscd_init_Expect();
dcd_init_Expect(rhport);