Benjamin Valentin
278d2c781c
ztimer_periodic: fix example in documentation
2023-09-29 18:27:43 +02:00
5f3a9de7fa
treewide: fix path to ztimer test applications
2023-05-13 19:08:38 +02:00
Martine Lenders
dd969745ab
ztimer/ztimer64: uncrustify code
2023-03-15 15:13:48 +01:00
Benjamin Valentin
fef20d4f04
ztimer: add ztimer_stopwatch convenience functions
2023-03-06 14:25:09 +01:00
Juergen Fitschen
90b2f3158c
ztimer/convert: pass-thru start/stop ops to lower timer
2022-11-22 00:25:34 +01:00
Jue
4013dff1fd
ztimer: acquire and release clock for running timers
2022-11-22 00:25:34 +01:00
Jue
a228ca7548
ztimer: introduce ztimer_acquire() and ztimer_release()
2022-11-22 00:25:34 +01:00
Jue
159749e1f0
sys/ztimer: add defaults for ztimer_periph_lptimer
2022-10-27 19:44:57 +02:00
Karl Fessel
5093153468
ztimer(64): make xtimer_compat documetation visible (defgroup)
2022-08-09 14:26:49 +02:00
chrysn
f3e462d039
sys/ztimer: Name callback types
2022-03-08 09:12:20 +01:00
benpicco
21205bd6ce
Merge pull request #17351 from benpicco/ztimer_periodic-return
...
ztimer_periodic: make callback function return bool
2022-03-03 14:42:33 +01:00
Karl Fessel
08442dbc83
sys/ztimer/xtimer_comapt: add missing define and functions
...
- dummy XTIMER_BACKOFF
- xtimer_init
- xtimer_is_set
- xtimer_rmutex_lock_timeout
2022-02-25 16:32:35 +01:00
Karl Fessel
eb87cb7d3a
sys/ztimer/xtimer_compat: fix bug introduced in #17690
2022-02-25 13:52:18 +01:00
Karl Fessel
822dbc718d
sys/ztimer: xtimer_compat (32) remove xtimer_now_timex()
2022-02-23 16:21:37 +01:00
Karl Fessel
d81fbf044b
sys/ztimer: cleanup xtimer_compat.h for 32Bit only
2022-02-23 16:01:05 +01:00
d758cb93ef
sys/ztimer: add auto_adjust module
2022-02-18 13:07:49 +01:00
Francisco Molina
2005ba53f5
sys/include/ztimer: document CONFIG_ZTIMER_USEC_ADJUST_%
2022-02-17 09:30:09 +01:00
Benjamin Valentin
64bd80d389
ztimer_periodic: make callback function return bool
...
The callback function of `ztimer_periodic` is only expected to have
two states.
So let it return `true` if the timer should keep repeating, `false`
otherwise.
2021-12-08 00:10:55 +01:00
Benjamin Valentin
358aa11d48
ztimer/xtimer_compat: implement trivial functions
...
xtimer_ticks64_t / xtimer_ticks32_t is no longer a struct, so these are
even more trivial than on xtimer.
2021-10-29 00:45:01 +02:00
Francisco
9d1d2f9e21
Merge pull request #16172 from kfessel/p-zimer-sec
...
sys/ztimer: add ZTIMER_SEC, improve auto_init
2021-04-02 08:32:38 +02:00
Karl Fessel
aa770fdd8c
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.
2021-04-01 18:19:01 +02:00
Jnae
b1aaa974bd
sys/ztimer: add periph_ptp backend
2021-03-28 15:50:19 +02:00
Martine Lenders
7e3846b6a4
ztimer: apply uncrustify patches
2021-02-02 22:21:15 +01:00
Marian Buschsieweke
2f7470b3fe
sys/ztimer: fix xtimer_compat
2020-12-14 10:46:51 +01:00
Marian Buschsieweke
76cc81880e
sys/ztimer: increase xtimer_compat coverage
...
- add some xtimer specific defines some tests rely on
- provide the following missing functions:
- xtimer_ticks()
- xtimer_set_timeout_flag()
- xtimer_set_timeout_flag64()
- xtimer_spin()
2020-12-09 20:59:30 +01:00
Marian Buschsieweke
7364f1b451
sys/ztimer: compat for xtimer_mutex_lock_timeout
2020-12-09 13:26:37 +01:00
0b801c4de0
all: adapt to moved sched defines
2020-11-23 16:56:34 +01:00
Francisco Molina
1d9994b9ec
sys/include/ztimer/xtimer_compat: fix wrong variable name
2020-11-22 13:05:36 +01:00
benpicco
010925d77d
Merge pull request #15076 from benpicco/xtimer_msleep
...
xtimer: introduce xtimer_msleep()
2020-11-04 11:09:03 +01:00
Marian Buschsieweke
b48679e497
sys/ztimer: Use uint32_t for freq in periph_timer
...
Now that timer_init() of periph_timer uses uint32_t for the frequency, ztimer
should do the same.
2020-10-30 22:02:12 +01:00
Benjamin Valentin
ca193cf515
xtimer: introduce xtimer_msleep()
...
Add a function that sleeps for ms instead of µs.
This will make the conversion to ztimer easier for users as now there is
a direct mapping to ZTIMER_MSEC.
2020-10-24 21:38:25 +02:00
548c4f02fc
sys/ztimer: add ztimer_periodic
2020-09-29 23:04:39 +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
ba9afe98c3
sys/ztimer: uncrustify
2020-05-11 16:43:50 +02:00
Francisco Molina
bc16809d9c
sys/include/ztimer: add configuration header
2020-05-06 11:27:10 +02:00
b45f4236de
sys/ztimer: make ztimer_overhead() return signed value (int32_t)
2020-03-10 12:23:33 +01:00
616daff945
sys/ztimer: introduce xtimer wrapper
2020-03-04 12:44:02 +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