diff options
| author | hathach <[email protected]> | 2024-11-04 17:20:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-11-04 17:20:58 +0700 |
| commit | 80ad7c4e87b74b1bccc4f566a3cee8d1ff0fafc9 (patch) | |
| tree | 8a012b078b15e538272a8116975d513682a4a2b3 /src/tusb.h | |
| parent | 5d6d905cb063f7a4f13cf0c8160dbf6371e70e4c (diff) | |
add tusb_time_millis_api() and default/weak tusb_time_delay_ms_api(). Which is required for host and some device without RTOS.
Diffstat (limited to 'src/tusb.h')
| -rw-r--r-- | src/tusb.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tusb.h b/src/tusb.h index 3ffaafded..cb6021b33 100644 --- a/src/tusb.h +++ b/src/tusb.h @@ -169,8 +169,11 @@ void tusb_int_handler(uint8_t rhport, bool in_isr); // API Implemented by user //--------------------------------------------------------------------+ -// Get current milliseconds, maybe required by some port with no RTOS -uint32_t tusb_time_millis(void); +// Get current milliseconds, required by some port/configuration without RTOS +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 +void tusb_time_delay_ms_api(uint32_t ms); #ifdef __cplusplus } |
