Is there implementation of these functions available for Freertos version of app_timer?
app_timer_cnt_get()
app_timer_cnt_diff_compute()
they are required for LESC operations.
Thanks!
Is there implementation of these functions available for Freertos version of app_timer?
app_timer_cnt_get()
app_timer_cnt_diff_compute()
they are required for LESC operations.
Thanks!
Hi.
There is actually no need for those functions in FreeRTOS.
Instead, you can use
xTaskGetTickCount - which returns the count of ticks since vTaskStartScheduler was called.
(Ref: https://www.freertos.org/a00021.html#xTaskGetTickCount)
When using an RTOS, it is best to use RTOS features as much as possible.
Best regards,
Joakim
I am having the same issue using app_timer_freertos with the libuarte library. I'm using freertos, the softdevice and 2 uarte's, so there are not enough rtc's to go around. I need to use app_timer, but libuarte uses functions which are in app_timer.c, and missing from app_timer_freertos.c. These 2 functions should be added for compatibility.
I am having the same issue using app_timer_freertos with the libuarte library. I'm using freertos, the softdevice and 2 uarte's, so there are not enough rtc's to go around. I need to use app_timer, but libuarte uses functions which are in app_timer.c, and missing from app_timer_freertos.c. These 2 functions should be added for compatibility.