[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: add ZTIMER_SEC (#15715)

Marian Buschsieweke notifications at github.com
Thu Jan 7 10:34:13 CET 2021

### Contribution description

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

### Testing procedure

- `tests/ztimer_msg` has been updated to allow testing `ZTIMER_SEC`. Note: Uncomment a line in the Makefile as documented there
- `tests/ztimer_underflow` has been updated to allow testing `ZTIMER_SEC`
     - Run `make TEST_ZTIMER_CLOCK=ZTIMER_SEC -C tests/ztimer_underflow flash test`
     - This fails for me, which proves two things: a) wiring up the RTC worked, and b) there is a preexisting bug in `master` unrelated to the PR that needs fixing.

### Issues/PRs references

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * sys/ztimer: add ZTIMER_SEC
  * tests/ztimer_msg: Allow testing ZTIMER_SEC
  * tests/ztimer_underflow: allow testing ZTIMER_SEC

-- File Changes --

    M sys/include/ztimer.h (5)
    M sys/ztimer/Makefile.dep (4)
    M sys/ztimer/auto_init.c (36)
    M tests/ztimer_msg/Makefile (3)
    M tests/ztimer_msg/main.c (5)
    M tests/ztimer_underflow/Makefile (4)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210107/5080769a/attachment.htm>

More information about the notifications mailing list