From 3cbb87e39061d7143c64a4e7cbed826862c365c3 Mon Sep 17 00:00:00 2001 From: Anatole SCHRAMM Date: Thu, 31 Jul 2025 16:18:52 +0200 Subject: [PATCH] Added the tls_os_time_delay_until function (which is just a wrapper to freertos's vTaskDelayUntil function) --- include/os/wm_osal.h | 2 ++ src/os/rtos/wm_osal_rtos.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/os/wm_osal.h b/include/os/wm_osal.h index daa6f26..6a650a5 100644 --- a/include/os/wm_osal.h +++ b/include/os/wm_osal.h @@ -772,6 +772,8 @@ tls_os_status_t tls_os_queue_flush(tls_os_queue_t *queue); */ void tls_os_time_delay(u32 ticks); + void tls_os_time_delay_until(u32 * const previous_wake_time, const u32 duration_in_ticks); + u8 tls_os_timer_active(tls_os_timer_t *timer); u32 tls_os_timer_expirytime(tls_os_timer_t *timer); diff --git a/src/os/rtos/wm_osal_rtos.c b/src/os/rtos/wm_osal_rtos.c index 9bf6a33..29f483b 100644 --- a/src/os/rtos/wm_osal_rtos.c +++ b/src/os/rtos/wm_osal_rtos.c @@ -1419,6 +1419,11 @@ u32 tls_os_timer_expirytime(tls_os_timer_t *timer) vTaskDelay(ticks); } +void tls_os_time_delay_until(u32 * const previous_wake_time, const u32 duration_in_ticks) +{ + vTaskDelayUntil(previous_wake_time, duration_in_ticks); +} + /* ********************************************************************************************************* * task stat info