diff options
| author | hathach <[email protected]> | 2026-02-27 23:51:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-02-28 00:01:40 +0700 |
| commit | 8444c25ab6bc841bad81fd04afc1e66a9d57a115 (patch) | |
| tree | 125bdcf7c4a0e63d46cad36537e9633ce5e7174e /examples/device/hid_boot_interface/src | |
| parent | 7ea02fd6c9e376679bc1fe025bb73e43664e17c6 (diff) | |
replace board_millis() with tusb_time_millis_api()
Diffstat (limited to 'examples/device/hid_boot_interface/src')
| -rw-r--r-- | examples/device/hid_boot_interface/src/main.c | 4 |
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; |
