summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-03-04 15:24:11 +0700
committerGitHub <[email protected]>2026-03-04 15:24:11 +0700
commit13e0b0c4f149016c829f039dc082151bca01174f (patch)
tree512d9340830a3cab772a7e89a1dc271d31446cf7 /examples/device/hid_boot_interface/src
parenta8a4db3721cccd32c8e998a7aa816719294d7a66 (diff)
parente4950e9b693171f7bb47d8c1f800ece8827242ec (diff)
Merge pull request #3490 from Precidata/non-blocking-host-v2
Fully asynchrounous host code (v2)
Diffstat (limited to 'examples/device/hid_boot_interface/src')
-rw-r--r--examples/device/hid_boot_interface/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/hid_boot_interface/src/main.c b/examples/device/hid_boot_interface/src/main.c
index 44a91db67..4de319f52 100644
--- a/examples/device/hid_boot_interface/src/main.c
+++ b/examples/device/hid_boot_interface/src/main.c
@@ -109,7 +109,7 @@ void hid_task(void) {
const uint32_t interval_ms = 10;
static uint32_t start_ms = 0;
- if (board_millis() - start_ms < interval_ms) {
+ if (tusb_time_millis_api() - start_ms < interval_ms) {
return; // not enough time
}
start_ms += interval_ms;
@@ -238,7 +238,7 @@ void led_blinking_task(void) {
}
// Blink every interval ms
- if (board_millis() - start_ms < blink_interval_ms) {
+ if (tusb_time_millis_api() - start_ms < blink_interval_ms) {
return; // not enough time
}
start_ms += blink_interval_ms;