Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: nrf_rtc_timer: Fix handling of COMPARE events in set_alarm()
This is a follow-up to commits cf871ae and 205e684. It turns out that the current implementation of the nrf_rtc_timer may still fail to properly handle a timeout if that timeout is set in very specific conditions - when a previously set timeout is about to expire. When that happens, the new timeout is handled 512 seconds later (when the system timer overflows) than it should be. A recently added nrf_rtc_timer test case (test_tight_rescheduling) exposes this problem and this commit fixes it by adding examination of COMPARE events that appear during setting of the CC register value for a given timeout. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
- Loading branch information