Skip to content
Commit 524ed5db authored by Flavia Caforio's avatar Flavia Caforio Committed by Carles Cufí
Browse files

drivers: counter: nrf_timer: Add event clear to set_top_value



At present, if you want to set a periodic timer again with
set_top_value, the last triggered event is not cleared. This could
result in an old event being served at the next interrupt activation.

The solution proposed in this patch adds the nrf_timer_event_clear
function into set_top_value to prevent this from happening in the
above case.

Signed-off-by: default avatarFlavia Caforio <flavia.caforio@amarulasolutions.com>
parent 0d1fa268
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment