Hi All,
Is macro in /modules/nrfx/hal/nrf_rtc.h correct?
so for 1000Hz requested it returns 31 which gives 1024Hz but better value is 32 with 992Hz.
It is a typical problem with c rounding down.
Regards,
Pawel
Hi All,
Is macro in /modules/nrfx/hal/nrf_rtc.h correct?
so for 1000Hz requested it returns 31 which gives 1024Hz but better value is 32 with 992Hz.
It is a typical problem with c rounding down.
Regards,
Pawel
Hi pawel,
Thank you very much for reporting this to us . This helps us in further improvement. I have alerted this internally and we are onto it.
Best Regards,
Priyanka
Hi pawel,
Thank you very much for reporting this to us . This helps us in further improvement. I have alerted this internally and we are onto it.
Best Regards,
Priyanka
Thank you,
I found correct version in freertos ports, also in SDK
/* Constants required to manipulate the NVIC. */
#define portNRF_RTC_PRESCALER ( (uint32_t) (ROUNDED_DIV(configSYSTICK_CLOCK_HZ, configTICK_RATE_HZ) - 1) )