Added the tls_os_time_delay_until function (which is just a wrapper to freertos's vTaskDelayUntil function)
This commit is contained in:
parent
3a8e2fcf7a
commit
3cbb87e390
@ -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(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);
|
u8 tls_os_timer_active(tls_os_timer_t *timer);
|
||||||
|
|
||||||
u32 tls_os_timer_expirytime(tls_os_timer_t *timer);
|
u32 tls_os_timer_expirytime(tls_os_timer_t *timer);
|
||||||
|
@ -1419,6 +1419,11 @@ u32 tls_os_timer_expirytime(tls_os_timer_t *timer)
|
|||||||
vTaskDelay(ticks);
|
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
|
* task stat info
|
||||||
|
Loading…
Reference in New Issue
Block a user