[riot-commits] [RIOT-OS/RIOT] 73dbda: cpu/sam0_common: add rtc_get_tamper()

benpicco noreply at github.com
Tue Apr 13 14:12:03 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 73dbda99ac72493eb26b5c78962ea0200e70487f
      https://github.com/RIOT-OS/RIOT/commit/73dbda99ac72493eb26b5c78962ea0200e70487f
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M cpu/sam0_common/include/periph_cpu_common.h
    M cpu/sam0_common/periph/rtc_rtt.c

  Log Message:
  -----------
  cpu/sam0_common: add rtc_get_tamper()

Add a function to query which tamper event woke the CPU from hibernation.


  Commit: 55c95cd8fd90f49532ebdc8ac46d090655a5ef25
      https://github.com/RIOT-OS/RIOT/commit/55c95cd8fd90f49532ebdc8ac46d090655a5ef25
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M tests/periph_gpio/main.c

  Log Message:
  -----------
  tests/periph_gpio: display tamper wake event


  Commit: 9d482c4448b94b57591f9e46e921b1b64dbac2ab
      https://github.com/RIOT-OS/RIOT/commit/9d482c4448b94b57591f9e46e921b1b64dbac2ab
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M cpu/sam0_common/periph/rtc_rtt.c

  Log Message:
  -----------
  cpu/sam0_common: RTC: only write TAMPCTRL when tamper is enabled

If we configure TAMPCTRL early, GPIO events will set bits in the
TAMPCTRL register.
That means that after a wake-up, we can't tell if the bit was set
because it was the wake-up source or if it was already set by a
run-time GPIO event.


  Commit: 13fbb7c1a07562ebfd25391afff2607eeade9596
      https://github.com/RIOT-OS/RIOT/commit/13fbb7c1a07562ebfd25391afff2607eeade9596
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M cpu/sam0_common/include/periph_cpu_common.h
    M cpu/sam0_common/periph/rtc_rtt.c

  Log Message:
  -----------
  cpu/sam0_common: add rtc_tamper_pin_mask()


  Commit: bd6114ae9d42c9c361755d18042b0d02ce61de09
      https://github.com/RIOT-OS/RIOT/commit/bd6114ae9d42c9c361755d18042b0d02ce61de09
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M cpu/sam0_common/include/periph_cpu_common.h
    M cpu/sam0_common/periph/rtc_rtt.c
    M tests/periph_gpio/main.c

  Log Message:
  -----------
  Merge pull request #16187 from benpicco/cpu/sam0_common/get_tamper

cpu/sam0_common: add rtc_get_tamper_event()


Compare: https://github.com/RIOT-OS/RIOT/compare/fa8057ffbf2c...bd6114ae9d42


More information about the commits mailing list