use tud_inited() instead of tusb_inited()
This commit is contained in:
@@ -450,7 +450,7 @@ static void usbd_reset(uint8_t rhport)
|
|||||||
bool tud_task_event_ready(void)
|
bool tud_task_event_ready(void)
|
||||||
{
|
{
|
||||||
// Skip if stack is not initialized
|
// Skip if stack is not initialized
|
||||||
if ( !tusb_inited() ) return false;
|
if ( !tud_inited() ) return false;
|
||||||
|
|
||||||
return !osal_queue_empty(_usbd_q);
|
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
|
(void) in_isr; // not implemented yet
|
||||||
|
|
||||||
// Skip if stack is not initialized
|
// Skip if stack is not initialized
|
||||||
if ( !tusb_inited() ) return;
|
if ( !tud_inited() ) return;
|
||||||
|
|
||||||
// Loop until there is no more events in the queue
|
// Loop until there is no more events in the queue
|
||||||
while (1)
|
while (1)
|
||||||
|
@@ -197,7 +197,7 @@ void setUp(void)
|
|||||||
dcd_int_disable_Ignore();
|
dcd_int_disable_Ignore();
|
||||||
dcd_int_enable_Ignore();
|
dcd_int_enable_Ignore();
|
||||||
|
|
||||||
if ( !tusb_inited() )
|
if ( !tud_inited() )
|
||||||
{
|
{
|
||||||
dcd_init_Expect(rhport);
|
dcd_init_Expect(rhport);
|
||||||
tusb_init();
|
tusb_init();
|
||||||
|
@@ -124,7 +124,7 @@ void setUp(void)
|
|||||||
dcd_int_disable_Ignore();
|
dcd_int_disable_Ignore();
|
||||||
dcd_int_enable_Ignore();
|
dcd_int_enable_Ignore();
|
||||||
|
|
||||||
if ( !tusb_inited() )
|
if ( !tud_inited() )
|
||||||
{
|
{
|
||||||
mscd_init_Expect();
|
mscd_init_Expect();
|
||||||
dcd_init_Expect(rhport);
|
dcd_init_Expect(rhport);
|
||||||
|
Reference in New Issue
Block a user