diff options
| author | Meco Man <[email protected]> | 2020-12-29 00:08:24 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2020-12-29 00:08:24 +0800 |
| commit | c2e15e003c60fd0aeb412dbc7c6deb1c1f55a0ef (patch) | |
| tree | 0b773a142e053128248159f4cc9bef7f799693f2 /include | |
| parent | 3bca2cfb418f03c529fc8563b62c19d391caf90b (diff) | |
add function rt_hw_1ms_tick_get()
Diffstat (limited to 'include')
| -rw-r--r-- | include/rthw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rthw.h b/include/rthw.h index 89877faf90..c3960350b8 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -134,6 +134,11 @@ void rt_hw_exception_install(rt_err_t (*exception_handle)(void *context)); */ void rt_hw_us_delay(rt_uint32_t us); +/* + * provides a tick value ALWAYS in millisecond + */ +rt_tick_t rt_hw_1ms_tick_get(void); + #ifdef RT_USING_SMP typedef union { unsigned long slock; |
