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 /src/common | |
| parent | 7ea02fd6c9e376679bc1fe025bb73e43664e17c6 (diff) | |
replace board_millis() with tusb_time_millis_api()
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 9eb0a9337..6ac1405f3 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -90,6 +90,12 @@ // TODO move to a more obvious place/file //--------------------------------------------------------------------+ +// Get current milliseconds, required by some port/configuration without RTOS +extern uint32_t tusb_time_millis_api(void); + +// Delay in milliseconds, use tusb_time_millis_api() by default. required by some port/configuration with no RTOS +extern void tusb_time_delay_ms_api(uint32_t ms); + // flush data cache extern void tusb_app_dcache_flush(uintptr_t addr, uint32_t data_size); |
