1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu
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
..
arm7_common cpu/arm7_common: use malloc_thread_safe 2020-12-18 17:23:12 +01:00
atmega32u4 cpu/atmega_common: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
atmega128rfa1 treewide: change netdev driver dependencies against netdev_default 2020-08-27 11:46:25 +02:00
atmega256rfr2 treewide: change netdev driver dependencies against netdev_default 2020-08-27 11:46:25 +02:00
atmega328p cpu/atmega_common: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
atmega1281 cpu/atmega_common: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
atmega1284p cpu/atmega_common: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
atmega2560 cpu/atmega_common: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
atmega_common cpu/avr8_common: Normalize method prefix name 2021-01-07 16:29:42 -03:00
avr8_common cpu/avr8_common: Normalize method prefix name 2021-01-07 16:29:42 -03:00
cc26x0 cpu/cc26x0: implement setuptrimdevice function for cc26x0 2020-11-05 23:59:36 -08:00
cc26x2_cc13x2 cpu/*: remove unused assert.h include 2020-10-22 11:13:09 +02:00
cc26xx_cc13xx drivers/periph/timer: Use uint32_t for frequency 2020-10-30 22:02:12 +01:00
cc2538 Update cpu/cc2538/include/cc2538_eui_primary.h 2020-12-14 15:23:13 +01:00
cortexm_common cpu/cortexm_common: increase RIOTBOOT_LEN size when usbus_dfu is used 2021-01-12 11:34:22 +01:00
efm32 cpu/efm32: adapt MPU-capable cpus 2021-01-06 23:44:54 +01:00
esp32 cpu/esp32: fix typo in timer documentation 2021-01-08 12:04:24 +01:00
esp8266 cpu/esp*: Fix cast alignment issues 2020-11-18 10:19:23 +01:00
esp_common cpu/esp_common: Add missing includes and ISO-C++ compatibility 2021-01-10 18:02:39 +01:00
fe310 Merge pull request #15673 from maribu/fe310-malloc 2020-12-21 13:29:02 +01:00
kinetis cpu/kinetis/timer: consider no LPTMR when no config present 2021-01-12 15:31:37 +01:00
lm4f120 drivers/periph/timer: Use uint32_t for frequency 2020-10-30 22:02:12 +01:00
lpc23xx all: remove traces of kernel_types.h 2020-11-25 17:52:34 +01:00
lpc1768 boards/lpc1768: move vendor conf code to CPU level 2021-01-08 21:47:10 +01:00
mips32r2_common cpu/mips32r2_common: use malloc_thread_safe 2020-12-18 18:17:32 +01:00
mips_pic32_common drivers/periph/timer: Use uint32_t for frequency 2020-10-30 22:02:12 +01:00
mips_pic32mx cpu/mips: remove never used load memory address 2020-10-13 18:57:39 +02:00
mips_pic32mz cpu/mips: remove never used load memory address 2020-10-13 18:57:39 +02:00
msp430_common cpu/msp430_common: use malloc_thread_safe 2020-12-18 17:30:40 +01:00
msp430fxyz drivers/periph/timer: Use uint32_t for frequency 2020-10-30 22:02:12 +01:00
native cpu/native/rtc: add rtc_set_time implementation 2020-12-15 12:52:35 +01:00
nrf5x_common cpu/nrf5x: implement periph_timer_periodic 2020-12-04 19:03:44 +01:00
nrf51 nrf5x: Adapt to flashpage/flashpage_pagewise API 2020-11-11 23:16:40 +01:00
nrf52 cpu/nrf52: update RIOTBOOT_LEN w/ MODULE_USBUS_DFU 2021-01-12 11:34:22 +01:00
qn908x cpu/qn908x: fix ENABLE_DEBUG definition 2021-01-08 14:37:33 +01:00
sam0_common cpu/sam0_common: RTC: add timeout to spurious tamper event 2021-01-12 17:36:40 +01:00
sam3 Merge pull request #15348 from maribu/periph_timer_type 2020-10-30 23:22:51 +01:00
sam_common cpu/sam_common: set CPU_HAS_BITBAND 2020-08-08 12:44:11 +02:00
samd5x kconfig: add PERIPH_ETH feature to samd5x 2020-12-13 22:30:54 +01:00
samd21 cpu/samd21: add samd10 to Kconfig 2020-12-11 18:25:36 +01:00
saml1x cpu/saml1x: add NVM User Page Mapping 2020-11-10 12:18:47 +01:00
saml21 cpu/saml21: add NVM User Page Mapping 2020-11-10 12:18:47 +01:00
stellaris_common
stm32 stm32/periph/uart: set flow control bits before enabling uart 2021-01-12 07:37:19 +01:00
doc.txt cpu/lpc23xx: rename Doxygen group 2020-07-16 17:01:10 +02:00
Kconfig treewide: change Kconfig prefix for module symbols 2020-08-31 09:57:28 +02:00