From 4b92d325beb0483584004b5005ab67d39f06a45d Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 19 Nov 2025 15:07:50 +0700 Subject: device_info wait 100ms for host's uart, needed for hil test --- examples/host/device_info/src/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/host') diff --git a/examples/host/device_info/src/main.c b/examples/host/device_info/src/main.c index f71702efc..5b914a2ee 100644 --- a/examples/host/device_info/src/main.c +++ b/examples/host/device_info/src/main.c @@ -99,6 +99,7 @@ int main(void) { #if CFG_TUSB_OS == OPT_OS_FREERTOS init_freertos_task(); #else + board_delay(100); // wait for uart to be ready init_tinyusb(); while (1) { tuh_task(); // tinyusb host task @@ -289,6 +290,7 @@ void app_main(void) { void usb_host_task(void *param) { (void) param; + board_delay(100); // wait for uart to be ready init_tinyusb(); while (1) { tuh_task(); -- cgit v1.3.1