1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/sam0_common
Juan Carrano f7279c84bb cpu/sam0_common: rtt: correcly clear flags.
The INTFLAGS register is cleared by writing a 1 to the corresponding interrupt
flag bit. From the samr21's manual:

> Writing a zero to this bit has no effect.
> Writing a one to this bit clears the Compare 0 interrupt flag.

This is a common pattern in flag registers.

This RTT driver is using or-equal to clear the flags, which means it can
possibly clear other interrupts. There's a small chance that one event is
missed if it happens very close to another event.

Credits to @benpicco, @dylad for pointing out missing fixes.
2019-09-11 12:55:10 +02:00
..
include sam0_common: add uart modecfg 2019-06-21 10:54:24 +02:00
ldscripts
periph cpu/sam0_common: rtt: correcly clear flags. 2019-09-11 12:55:10 +02:00
doc.txt cpu/sam0: update doc.txt with new MCU families 2019-07-17 11:37:46 +02:00
Makefile
Makefile.features sam0_common: add uart modecfg 2019-06-21 10:54:24 +02:00
Makefile.include cpu: do not locally export compilation variables 2019-08-29 10:35:53 +02:00