Skip to content

Commit 0921eda

Browse files
committed
use tud_inited() instead of tusb_inited()
1 parent a97f391 commit 0921eda

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/device/usbd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void usbd_reset(uint8_t rhport)
450450
bool tud_task_event_ready(void)
451451
{
452452
// Skip if stack is not initialized
453-
if ( !tusb_inited() ) return false;
453+
if ( !tud_inited() ) return false;
454454

455455
return !osal_queue_empty(_usbd_q);
456456
}
@@ -478,7 +478,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr)
478478
(void) in_isr; // not implemented yet
479479

480480
// Skip if stack is not initialized
481-
if ( !tusb_inited() ) return;
481+
if ( !tud_inited() ) return;
482482

483483
// Loop until there is no more events in the queue
484484
while (1)

test/unit-test/test/device/msc/test_msc_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void setUp(void)
197197
dcd_int_disable_Ignore();
198198
dcd_int_enable_Ignore();
199199

200-
if ( !tusb_inited() )
200+
if ( !tud_inited() )
201201
{
202202
dcd_init_Expect(rhport);
203203
tusb_init();

test/unit-test/test/device/usbd/test_usbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void setUp(void)
124124
dcd_int_disable_Ignore();
125125
dcd_int_enable_Ignore();
126126

127-
if ( !tusb_inited() )
127+
if ( !tud_inited() )
128128
{
129129
mscd_init_Expect();
130130
dcd_init_Expect(rhport);

0 commit comments

Comments
 (0)