I have as starting point the HRS FreeRTOS app. Now I want to add a millisecond counter. But from what I read I'm a little bit confused.
Can someone tell me what's the best route to do.
a) In FreeRTOS you can get a tick count with xTaskGetTickCount. Is the the best route? And how to convert it then to milliseconds because the configTICK_RATE_HZ is set to 1024 in the HRS example?
OR
b) Is is wise to use the app_timer_cnt_get() from the app_timer library? If that's the case do I still need to app_timer_create() and app_timer_start() to use the app_timer_cnt_get()? And how to convert that result to milliseconds? I guess it's linked tot the FreeRTOS timer.