summaryrefslogtreecommitdiff
path: root/src/osal/osal_zephyr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osal/osal_zephyr.h')
-rw-r--r--src/osal/osal_zephyr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osal/osal_zephyr.h b/src/osal/osal_zephyr.h
index 91f225f79..900ac786c 100644
--- a/src/osal/osal_zephyr.h
+++ b/src/osal/osal_zephyr.h
@@ -35,6 +35,10 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_task_delay(uint32_t msec) {
k_msleep(msec);
}
+TU_ATTR_ALWAYS_INLINE static inline uint32_t osal_time_millis(void) {
+ return k_uptime_get_32();
+}
+
//--------------------------------------------------------------------+
// Spinlock API
//--------------------------------------------------------------------+