[riot-commits] [RIOT-OS/RIOT] da76ca: sys/ztimer: add ZTIMER_SEC

Francisco noreply at github.com
Fri Apr 2 08:32:54 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: da76ca68db7001221f068cd07e4858f387a14d06
      https://github.com/RIOT-OS/RIOT/commit/da76ca68db7001221f068cd07e4858f387a14d06
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

  Changed paths:
    M sys/include/ztimer.h
    M sys/ztimer/Makefile.dep
    M sys/ztimer/auto_init.c

  Log Message:
  -----------
  sys/ztimer: add ZTIMER_SEC

wire up ZTIMER_SEC to the existing RTC backend, or RTT backend, or periph_timer
backend (in this order of preference).

Update sys/ztimer/auto_init.c

Co-authored-by: Leandro Lanzieri <leandro.lanzieri at haw-hamburg.de>


  Commit: cc92a0aea31bc94f24e5a7bba2604c2fbaf96ae2
      https://github.com/RIOT-OS/RIOT/commit/cc92a0aea31bc94f24e5a7bba2604c2fbaf96ae2
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M tests/ztimer_msg/Makefile
    M tests/ztimer_msg/main.c

  Log Message:
  -----------
  tests/ztimer_msg: Allow testing ZTIMER_SEC


  Commit: fc3e0b60555b66dba84b0b59d2e910a903a84a7e
      https://github.com/RIOT-OS/RIOT/commit/fc3e0b60555b66dba84b0b59d2e910a903a84a7e
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M tests/ztimer_underflow/Makefile

  Log Message:
  -----------
  tests/ztimer_underflow: allow testing ZTIMER_SEC


  Commit: aa770fdd8c97751513d72c24d0729ad87d17b112
      https://github.com/RIOT-OS/RIOT/commit/aa770fdd8c97751513d72c24d0729ad87d17b112
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M sys/include/ztimer/config.h
    M sys/ztimer/auto_init.c

  Log Message:
  -----------
  ztimer/auto_init: restructure for flexibitily, pm for ZTIMER_SEC

MSEC and SEC are now usable on TIMER(0) without having USEC
pm is configured by used hardware
    OLD configuration values are translated for backward compatibility
prefer rtt for ZTIMER_SEC

avoid doing partial ztimer setup if auto_init_ztimer is disabled

before this patch some const pointers might have been definend to values
that a user who disables auto_init for ztimer does not like.


  Commit: c9e17196def8837f8fac404f433310ae9c608463
      https://github.com/RIOT-OS/RIOT/commit/c9e17196def8837f8fac404f433310ae9c608463
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M sys/include/ztimer.h

  Log Message:
  -----------
  sys/ztimer: enhance periph selection documentation

provide more information about the selection procedure to Doxygen


  Commit: febfa5bc627a4fe0908a4448e8f56945591e73c5
      https://github.com/RIOT-OS/RIOT/commit/febfa5bc627a4fe0908a4448e8f56945591e73c5
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    A tests/ztimer_xsec/Makefile
    A tests/ztimer_xsec/Makefile.ci
    A tests/ztimer_xsec/README.md
    A tests/ztimer_xsec/app.config.test
    A tests/ztimer_xsec/main.c
    A tests/ztimer_xsec/tests/01-run.py

  Log Message:
  -----------
  tests/ztimer_xsec: add a simple high level ztimer test


  Commit: 72213ec99a230f3e44e452f3b66ba341adf4b86d
      https://github.com/RIOT-OS/RIOT/commit/72213ec99a230f3e44e452f3b66ba341adf4b86d
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M cpu/native/periph/rtc.c

  Log Message:
  -----------
  native/rtc: avoid dealing with DST


  Commit: 0b5709a853624bbe32273ce96bdae596ad17bac6
      https://github.com/RIOT-OS/RIOT/commit/0b5709a853624bbe32273ce96bdae596ad17bac6
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M sys/ztimer/periph_rtc.c

  Log Message:
  -----------
  ztimer/periph_rtc: count months from 0

contrary to the western civilised world struct tm requires
us to count months from 0


  Commit: 9e7f1d0097f9df51c90d27ef7b858e8e5cf079e0
      https://github.com/RIOT-OS/RIOT/commit/9e7f1d0097f9df51c90d27ef7b858e8e5cf079e0
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M sys/ztimer/Kconfig

  Log Message:
  -----------
  sys/ztimer: add ZTIMER_SEC to Kconfig


  Commit: 15f2d0008abf9186f9796713a83af38b950f0527
      https://github.com/RIOT-OS/RIOT/commit/15f2d0008abf9186f9796713a83af38b950f0527
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M cpu/native/periph/rtc.c

  Log Message:
  -----------
  native/rtc: ensure no struct tm extra information is used


  Commit: 3f66735bde26c382f065d70fdd4c9c507fc8e10b
      https://github.com/RIOT-OS/RIOT/commit/3f66735bde26c382f065d70fdd4c9c507fc8e10b
  Author: Karl Fessel <karl.fessel at ovgu.de>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M sys/ztimer/periph_rtc.c

  Log Message:
  -----------
  ztimer/periph_rtc: intialize struct tm to avoid TZ and IDST problems

{ .elem = 0 }  initializes the complete struct to 0
{} is not ISO C conform


  Commit: 9d1d2f9e21c439b69de56b47ffb027519322b8f3
      https://github.com/RIOT-OS/RIOT/commit/9d1d2f9e21c439b69de56b47ffb027519322b8f3
  Author: Francisco <femolina at uc.cl>
  Date:   2021-04-02 (Fri, 02 Apr 2021)

  Changed paths:
    M cpu/native/periph/rtc.c
    M sys/include/ztimer.h
    M sys/include/ztimer/config.h
    M sys/ztimer/Kconfig
    M sys/ztimer/Makefile.dep
    M sys/ztimer/auto_init.c
    M sys/ztimer/periph_rtc.c
    M tests/ztimer_msg/Makefile
    M tests/ztimer_msg/main.c
    M tests/ztimer_underflow/Makefile
    A tests/ztimer_xsec/Makefile
    A tests/ztimer_xsec/Makefile.ci
    A tests/ztimer_xsec/README.md
    A tests/ztimer_xsec/app.config.test
    A tests/ztimer_xsec/main.c
    A tests/ztimer_xsec/tests/01-run.py

  Log Message:
  -----------
  Merge pull request #16172 from kfessel/p-zimer-sec

sys/ztimer: add ZTIMER_SEC, improve auto_init


Compare: https://github.com/RIOT-OS/RIOT/compare/4b816916dc8c...9d1d2f9e21c4


More information about the commits mailing list