diff options
| author | hathach <[email protected]> | 2026-02-27 23:34:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-02-27 23:42:40 +0700 |
| commit | 7ea02fd6c9e376679bc1fe025bb73e43664e17c6 (patch) | |
| tree | 8ff5476245cfb8fe7d885512a4ec03c05167dfa9 /src/osal/osal.h | |
| parent | 8302adfab8727896c4a10935a15c32fbdcba3b8e (diff) | |
add osal_time_millis() to osal requirement
implement tusb_time_millis_api() with osal_time_millis() when OS is not NONE
Diffstat (limited to 'src/osal/osal.h')
| -rw-r--r-- | src/osal/osal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h index 44521620f..c0292a008 100644 --- a/src/osal/osal.h +++ b/src/osal/osal.h @@ -74,6 +74,8 @@ typedef void (*osal_task_func_t)(void* param); /*-------------------------------------------------------------------- OSAL Porting API Should be implemented as static inline function in osal_port.h header + uint32_t osal_time_millis(void); + void osal_spin_init(osal_spinlock_t *ctx); void osal_spin_lock(osal_spinlock_t *ctx, bool in_isr) void osal_spin_unlock(osal_spinlock_t *ctx, bool in_isr); |
