1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/sam0_common/periph
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
..
adc.c sam0_common: check ADC_NUMOF on adc_init() 2019-02-04 09:28:13 +01:00
cpuid.c cpu/samd5x: add support for samd5x/same5x MCUs 2019-06-06 16:47:11 +02:00
flashpage.c cpu/samd5x: add support for samd5x/same5x MCUs 2019-06-06 16:47:11 +02:00
gpio.c cpu/samd5x: add support for samd5x/same5x MCUs 2019-06-06 16:47:11 +02:00
hwrng.c cpu/sam0_common: add hwrng driver 2019-08-03 14:50:58 +02:00
i2c.c cpu/samd5x: add support for samd5x/same5x MCUs 2019-06-06 16:47:11 +02:00
Makefile
rtc.c sam0_common: rtc/rtt: don't setup oscilators 2019-06-18 13:20:04 +02:00
rtt.c cpu/sam0_common: rtt: correcly clear flags. 2019-09-11 12:55:10 +02:00
spi.c sam0_common: spi: use sercom_set_gen() instead of re-implementing it 2019-05-25 19:13:53 +02:00
timer.c sam0/timer: various fixes 2019-06-06 15:38:55 +02:00
uart.c sam0_common: add uart modecfg 2019-06-21 10:54:24 +02:00
usbdev.c cpu/samd5x: add support for samd5x/same5x MCUs 2019-06-06 16:47:11 +02:00