topic-counter: nrfx_*: counter_set_top_value inconsistent behavior #12800
Labels
area: Counter
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
The documentation does not indicate whether
counter_set_alarm()
which maps tocounter_set_top_value()
should be a one-shot or repeating capability. The behavior for Nordic is inconsistent:For RTC:
counter_set_top_value
is configured with the maximum top value the callback is invoked once, but not rescheduled, though the callback remains associated with the channel.counter_set_top_value
is configured with a top value less than the maximum the RTC clock is cleared and the timer rescheduled, resulting in a repeated callback at the requested interval.For TIMER:
counter_set_top_value
is the callback is repeated at the requested interval without being rescheduled.The text was updated successfully, but these errors were encountered: