[riot-commits] [RIOT-OS/RIOT] 46dbd8: tests/periph_rtc: fix system locks in ISR

benpicco noreply at github.com
Sun Feb 2 15:57:45 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 46dbd867f2a5d10770c0cf039438446516c458be
      https://github.com/RIOT-OS/RIOT/commit/46dbd867f2a5d10770c0cf039438446516c458be
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2020-02-02 (Sun, 02 Feb 2020)

  Changed paths:
    M tests/periph_rtc/main.c

  Log Message:
  -----------
  tests/periph_rtc: fix system locks in ISR

`tests/periph` calls the functions `rtc_get_alarm` and `rtc_set_alarm` from an ISR. Depending on the implementation of `periph_rtc`, however, these functions use `newlib` functions such as `localtime` and `mktime`, which in turn call the `newlib` lock function `__tz_lock`. This can lead to a system lock if the `newlib`  with real lock functionality is used instead of the `newlib_nano`.


  Commit: f760625cd0330dc401c5cfed06e23552f3cd36a2
      https://github.com/RIOT-OS/RIOT/commit/f760625cd0330dc401c5cfed06e23552f3cd36a2
  Author: benpicco <benpicco at googlemail.com>
  Date:   2020-02-02 (Sun, 02 Feb 2020)

  Changed paths:
    M tests/periph_rtc/main.c

  Log Message:
  -----------
  Merge pull request #13035 from gschorcht/tests/periph_rtc_fix

tests/periph_rtc: fix system locks in ISR


Compare: https://github.com/RIOT-OS/RIOT/compare/5d1bf26f0c14...f760625cd033


More information about the commits mailing list