commit | 3f3a907bb87139a11be11ede520434ccd61eda31 | [log] [tgz] |
---|---|---|
author | Piotr Zięcik <piotr.ziecik@nordicsemi.no> | Thu Jun 07 12:51:39 2018 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Jun 11 17:38:13 2018 -0400 |
tree | 2f2a199bef46c0ff38eb2d1cd49d23104cc3dcbb | |
parent | 7b7784e14967304b54ff2ac500ec9e0246ea8bf0 [diff] |
drivers: timer: Use sys_clock_hw_cycles_per_tick in nrf_rtc_timer. The nrf_rtc_timer used own method to calculate number of timer cycles per tick. As the result value was different than the one used by the kernel, the reported time was incorrect. This commit fixes the problem described above by using global sys_clock_hw_cycles_per_tick instead of custom RTC_TICKS_PER_SYS_TICK. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>