Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

SDK • Re: How to deal with USB suspend?

$
0
0
I had the same problem during my custmization TinyUSB to FreeRTOS and this one solved my problem:

Code:

void tinyusb_task(){    tusb_init();    while(1){        vTaskDelay(1);//this is solution        tud_task();    }}
This may be helpfully to someone else.

Try put "tud_task()" to "add_repeating_timer_ms"- it is parallel solution to mine one in FreeRTOS.

Statistics: Posted by Krzysztos — Sun Sep 01, 2024 6:53 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles