1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam0_common
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
..
dist cpu/sam0_common: add script to generate Kconfig files for all parts 2020-08-24 16:13:18 +02:00
include cpu/saml11: fix GPIO/IOBUS management 2020-12-15 17:00:54 +01:00
periph cpu/sam0_common: RTC: add timeout to spurious tamper event 2021-01-12 17:36:40 +01:00
sam0_eth cpu/sam0_common: fix ENABLE_DEBUG definition 2021-01-08 14:37:33 +01:00
doc.txt cpu/sam0: update doc.txt with new MCU families 2019-07-17 11:37:46 +02:00
Kconfig sam0: Adapt to flashpage/flashpage_pagewise API 2020-11-11 23:16:41 +01:00
Makefile cpu/sam0: add initial Ethernet support 2020-12-13 22:01:50 +01:00
Makefile.dep cpu/sam0: add initial Ethernet support 2020-12-13 22:01:50 +01:00
Makefile.features sam0: Adapt to flashpage/flashpage_pagewise API 2020-11-11 23:16:41 +01:00
Makefile.include cpu/sam0: add initial Ethernet support 2020-12-13 22:01:50 +01:00
sam0_common.config treewide: change Kconfig prefix for module symbols 2020-08-31 09:57:28 +02:00