1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam0_common/periph
Benjamin Valentin 3a7aa5d09a cpu/sam0_common: RTC: add timeout to spurious tamper event
Errate 2.17.4 says:

> Upon enabling the RTC tamper detection feature, a false tamper
> detection *can* be reported by the RTC.

It turns out that this spurious event is not always generated.
If RTC alarm is used and the CPU was previously woken from hibernate
by RTC, it *can* happen that the false tamper event is *not* generated.

In this case, we will block indefinitely on the mutex.

To solve this, add a timeout to the event.
Also poll the event instead of using a mutex, as we have already set
`PM->SLEEPCFG.bit.SLEEPMODE` at this point.
2021-01-12 17:36:40 +01:00
..
adc.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
cpuid.c cpu/samd5x: define CPU_COMMON_SAMD5X symbol and use it 2020-08-24 16:13:18 +02:00
dac.c cpu/sam0_common: DAC: wait for DAC to be ready 2020-12-13 02:11:36 +01:00
dma.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
eth.c cpu/sam0_common: fix ENABLE_DEBUG definition 2021-01-08 14:37:33 +01:00
flashpage.c cpu/sam0_common: flashpage: rename to sam0_flashpage_aux_write() 2020-11-17 00:34:31 +01:00
gpio.c cpu/saml11: fix GPIO/IOBUS management 2020-12-15 17:00:54 +01:00
hwrng.c cpu/sam0_common: add hwrng driver 2019-08-03 14:50:58 +02:00
i2c.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
Kconfig cpu/sam0_common/periph: add periph_rtc_rtt module to Kconfig 2020-11-06 15:57:56 +01:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pwm.c Merge pull request #15149 from benpicco/cpu/samd21-gclk7 2020-11-03 18:14:09 +01:00
rtc_rtt.c cpu/sam0_common: RTC: add timeout to spurious tamper event 2021-01-12 17:36:40 +01:00
spi.c cpu/sam0_common: SPI: add support for QSPI in SPI mode 2020-12-11 22:33:08 +01:00
timer.c drivers/periph/timer: Use uint32_t for frequency 2020-10-30 22:02:12 +01:00
uart.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
usbdev.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
wdt.c cpu/samd21: define CPU_COMMON_SAMD21 symbol and use it 2020-08-24 16:13:18 +02:00