1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

cpu/nrf5x_common/periph_timer: Clear periodic flag on set

A call to timer_set_absolute() should clear the periodic flag on the
specified timer and channel. This adds it.
This commit is contained in:
Marian Buschsieweke 2022-12-22 22:29:02 +01:00
parent 11a41345e0
commit 3ad897df2a
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -101,6 +101,7 @@ int timer_set_absolute(tim_t tim, int chan, unsigned int value)
}
ctx[tim].flags |= (1 << chan);
ctx[tim].is_periodic &= ~(1 << chan);
dev(tim)->CC[chan] = value;
/* clear spurious IRQs */