Skip to content

Commit 4b92d32

Browse files
committed
device_info wait 100ms for host's uart, needed for hil test
1 parent b2dc419 commit 4b92d32

File tree

1 file changed

+2
-0
lines changed
  • examples/host/device_info/src

1 file changed

+2
-0
lines changed

examples/host/device_info/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ int main(void) {
9999
#if CFG_TUSB_OS == OPT_OS_FREERTOS
100100
init_freertos_task();
101101
#else
102+
board_delay(100); // wait for uart to be ready
102103
init_tinyusb();
103104
while (1) {
104105
tuh_task(); // tinyusb host task
@@ -289,6 +290,7 @@ void app_main(void) {
289290

290291
void usb_host_task(void *param) {
291292
(void) param;
293+
board_delay(100); // wait for uart to be ready
292294
init_tinyusb();
293295
while (1) {
294296
tuh_task();

0 commit comments

Comments
 (0)