mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
use tud_inited() instead of tusb_inited()
This commit is contained in:
parent
a97f39151e
commit
0921edaf59
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user