1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

36 Commits

Author SHA1 Message Date
Karl Fessel
b7fef93f9c ztimer: add module removal information to doxygen 2022-05-19 11:39:00 +02:00
Karl Fessel
3680198619 ztimer: deprecate ztimer_now64 and ztimer_now_t 2022-05-04 15:57:57 +02:00
chrysn
f3e462d039 sys/ztimer: Name callback types 2022-03-08 09:12:20 +01:00
chrysn
632ca35eb4 sys/ztimer doc: List prerequisites for successful use of ztimer_now
Closes: https://github.com/RIOT-OS/RIOT/issues/17298

Co-authored-by: Karl Fessel <karl.fessel@ovgu.de>
2022-02-14 15:50:09 +01:00
chrysn
9e35b75ff4
Merge pull request #17408 from chrysn-pull-requests/ztimer-report-removal
sys/ztimer: ztimer_remove report success
2021-12-17 08:57:14 +01:00
chrysn
c703dc6e35 sys/ztimer: Documentation clarification 2021-12-16 15:35:20 +01:00
chrysn
991f74a62a sys/ztimer: ztimer_remove return its success
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2021-12-16 15:35:17 +01:00
32afae0b5f sys/ztimer: ztimer_now() add warning regarding comparing now() values 2021-12-15 12:34:37 +01:00
Francisco Molina
dd03d8c362 sys/ztimer: ztimer_set return the now value 2021-12-13 11:21:23 +01:00
b07b11b431 sys/ztimer: add some best practices 2021-12-09 15:53:39 +01:00
Francisco Molina
7c3360e4d6 sys/ztimer: add 'ztimer_no_periph_rtt'
This is a temporary fix for Issue #17060. It allows to disable
auto inclusion of `ztimer_periph_rtt` in cases where another
module or application requires direct access.

Limitations:
- as ifeq are involved order of inclusion matters, therefore
  these modules should be included early in the build at application
  level and not in modules `Makefile.dep`
- this does not disallow direct inclusions of `ztimer_periph_rtt`,
  since this only disables auto inclusion of these modules

This is a temporary solution since this is already possible with
Kconfig, but not in make.
2021-12-02 07:54:38 +01:00
Karl Fessel
eb11e463df sys/ztimer: make internal head update static 2021-11-18 13:45:49 +01:00
Karl Fessel
951fa14d70 sys/ztimer: rename required_pm_mode to block_pm_mode 2021-04-06 16:57:53 +02:00
Karl Fessel
c9e17196de sys/ztimer: enhance periph selection documentation
provide more information about the selection procedure to Doxygen
2021-04-01 18:19:15 +02:00
Marian Buschsieweke
da76ca68db 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@haw-hamburg.de>
2021-03-08 15:11:53 +01:00
Marian Buschsieweke
e241b43d3f
sys/ztimer: clearify doc on clock ops 2021-02-09 22:34:04 +01:00
Martine Lenders
6da60c933d
Merge pull request #15802 from miri64/treewide/cleanup/cppcheck-whitelisted
treewide: re-uncrustify whitelisted files
2021-02-03 07:59:27 +01:00
Martine Lenders
7e3846b6a4
ztimer: apply uncrustify patches 2021-02-02 22:21:15 +01:00
Vincent Dupont
fb4d2e509a ztimer: add ztimer_rmutex_lock_timeout()
Similar to xtimer_rmutex_lock_timeout()
2021-02-02 10:51:50 +01:00
Hauke Petersen
f5de257d58 ztimer: expose ztimer_is_set() to public API 2021-01-18 17:50:50 +01:00
Marian Buschsieweke
71a0c53df2
sys/ztimer: Add ztimer_mutex_lock_timeout() 2020-12-08 22:54:39 +01:00
0b801c4de0 all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
e1f390256a sys/ztimer: add some doc on the data structure choice 2020-10-26 12:09:06 +01:00
70b160713e ztimer: add comment explaining ztimer_spin() logic 2020-09-29 11:53:35 +02:00
07a1dde684 ztimer: fix ztimer_spin() time_left == duration case 2020-09-29 11:23:28 +02:00
Francisco
f3a5ee69e0
Merge pull request #14936 from kaspar030/ztimer_sleep_adjust
sys/ztimer: allow compensation of ztimer_sleep() overhead
2020-09-22 14:56:56 +02:00
fb7e285acd ztimer: add ztimer_spin()
This adds a simple busy waiting function intended for blocking, but very
precise short delays.
2020-09-11 00:18:59 +02:00
2fbd85b798 sys/ztimer: allow compensation of ztimer_sleep() overhead 2020-09-09 12:50:51 +02:00
Marian Buschsieweke
527c429f5f
sys/ztimer: Fix compilation without ztimer_extend
`ztimer_init_extend()` should only be defined when module `ztimer_extend` is
used, as otherwise the `struct` member `clock->max_value` is not available.
2020-08-19 07:02:19 +02:00
Marian Buschsieweke
74ada3e0d8
sys/ztimer: Fixed typo in doc 2020-05-14 20:28:18 +02:00
Guillaume Meunier
4967b141fa sys/ztimer: fix extern "C" guard at the end of ztimer.h and ztimer/config.h 2020-05-13 21:31:17 +02:00
Francisco Molina
a1f3a8d668
sys/ztimer: expose ZTIMER_MSEC/USEC_BASE
ztimer_clock are meant to be chained. At the end of the chaine
there is always a timer device object (periph_rtt/rtc/timer).

Since ZTIMER_MSEC and ZTIMER_USEC can be the scaled/shifted with
respect to the base periph_rtt/rtc/timer it makes sense to chain
other ZTIMER_XXX on top of the base rtc/timer/rtt in order to avoid
chained convertions.
2020-05-06 11:22:40 +02:00
fc68d9c3a3 sys/ztimer: properly initialize intermediate extension callback 2020-05-04 17:25:27 +02:00
Juergen Fitschen
73e22612e2 sys/ztimer: add power management for ztimer clocks 2020-04-29 10:55:10 +02:00
Juergen Fitschen
c42677609b sys/ztimer: remove duplicate definition of _ztimer_now_extend() 2020-03-26 10:48:56 +01:00
6dd79366bb sys: add ztimer subsystem
Co-authored-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>
2020-03-04 12:44:02 +01:00