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

73 Commits

Author SHA1 Message Date
Marian Buschsieweke
6a3d689238
sys/xtimer: add IWYU pragmas
This include what you use (IWYU) pragmas so that clang based linters
(such as clangd) treat the use of `xtimer_...()` functions as a use
of the `xtimer.h` header, even if the implementation of those functions
come from a compatibility wrapper.
2024-06-07 12:05:43 +02:00
Marian Buschsieweke
9454a50df3
sys/xtimer: improve documentation
- Add a deprecation note to xtimer, so that new code hopefully
  starts using ztimer
- Add a hint that `ztimer_xtimer_compat` can be used even after `xtimer`
  is gone
2023-05-30 17:32:48 +02:00
16117566cc sys/xtimer: add missing "modules.h" include to xtimer.h 2023-05-02 13:52:48 +02:00
df8086091f sys/ztimer: add ztimer64_xtimer_compat
The ztimer64_xtimer_compat modules implements the whole xtimer api
on top of ztimer64_usec
2022-02-24 09:10:58 +01:00
b15d1c127b sys/xtimer: introduce xtimer_is_set() 2022-02-09 12:54:16 +01:00
Francisco Molina
92a003fcdc sys/include/xtimer.h: deprecate nanosleep 2021-11-30 10:31:22 +01:00
0b801c4de0 all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
benpicco
010925d77d
Merge pull request #15076 from benpicco/xtimer_msleep
xtimer: introduce xtimer_msleep()
2020-11-04 11:09:03 +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
8507989931
sys/xtimer: fix typo 'occcured' -> 'occurred' 2020-10-02 08:14:02 +02:00
Marian Buschsieweke
d382bd6565
sys/xtimer: No tick conversion if xtimer_on_ztimer
When `xtimer_on_ztimer` is used, `xtimer` does not need to perform any clock
conversion. Especially undefined macros of `XTIMER_HZ` and `XTIMER_SHIFT` should
no longer result in compilation issues, as they are not used internally anyway.
2020-08-19 09:48:23 +02:00
Francisco
e8389a5847
Merge pull request #12870 from benpicco/xtimer-doc-fix
sys/xtimer: fix documentation about XTIMER_BACKOFF
2020-06-30 15:07:09 +02:00
398959ccaf
Merge pull request #13990 from fjmolinas/pr_ztimer_base
sys/ztimer: expose ZTIMER_MSEC/USEC_BASE
2020-05-07 13:35:39 +02:00
benpicco
96eadc00ad
Merge pull request #13987 from fjmolinas/pr_ztimer_xtimer_include_board.h
sys/include/xtimer.h: include board.h with ztimer
2020-05-05 14:21:43 +02:00
Francisco Molina
98a4e1bcf2
sys/include/xtimer.h: fix endif 2020-05-05 12:16:22 +02:00
JulianHolzwarth
67e83c1e3e sys/include/xtimer.h: new function xtimer_rmutex_lock_timeout() 2020-05-04 17:46:31 +02:00
Francisco Molina
46a2d9b9ab
sys/include/xtimer.h: include board.h with ztimer 2020-04-30 11:46:11 +02:00
c9c8c98a4b sys/xtimer: introduce xtimer_left_usec() 2020-04-21 11:26:56 +02:00
dd218333c2 sys/ztimer: add xtimer_on_ztimer
This commit adds logic to make xtimer use ztimer_usec as backend
(instead of periph_timer). This allows ztimer_usec and xtimer to
coexist. It also allows xtimer to profit from eventually implemented
power mode blocking in ztimer's periph_timer backend.
2020-03-04 12:44:03 +01:00
616daff945 sys/ztimer: introduce xtimer wrapper 2020-03-04 12:44:02 +01:00
fc40b54cae
Merge pull request #13371 from haukepetersen/add_xtimer_settimeoutflag64
xtimer: add xtimer_set_timeout_flag64()
2020-02-13 16:16:45 +01:00
Hauke Petersen
58e381979f xtimer: add xtimer_set_timeout_flag64() 2020-02-13 15:37:14 +01:00
Hauke Petersen
b92f5ccd15 xtimer: properly expose xtimer_usleep64() 2020-02-13 15:13:47 +01:00
Hyungsin
387344775b sys: xtimer concurrency/robustness improvement 2020-01-10 10:06:16 -08:00
Benjamin Valentin
f24a874bac sys/xtimer: fix documentation about XTIMER_BACKOFF
When XTIMER_BACKOFF is used by `_xtimer_set()`, `offset` has already
been converted to ticks.

So the documentation of the `xtimer_tsleepXX()` functions is correct,
however for `xtimer_usleep()` XTIMER_BACKOFF has to be converted to µs
to calculate the minimal sleep time.
2019-12-04 02:49:18 +01:00
Francois Berder
4a31f94cfc many typo fixes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Benjamin Valentin
6add264f6a sys/xtimer: fix generation of documentation
cd1ce6b98d accidentally disabled generating documentation for
`xtimer_msg_*()` functions.

Always define those functions when building the documentation.
2019-11-07 13:34:27 +01:00
Marian Buschsieweke
cd1ce6b98d
sys/xtimer: Remove dependency to core_msg
When module `core_msg` is not used, `xtimer` now no longer provides the features
related to messages. This allows using `xtimer` without `core_msg`.
2019-10-31 19:55:50 +01:00
JulianHolzwarth
ca8169f323 sys/include/xtimer.h: xtimer_mutex_lock_timeout() change comment
removing line because core_thread_flags is not required
2019-07-05 17:28:35 +02:00
fjmolinas
fc7f6c3b68 sys/xtimer.h: fix typo in xtimer_set_msg 2019-05-16 23:17:03 +02:00
fb2beb43c8
Merge pull request #8875 from Josar/pr/xtimer64
sys/include/xtimer: Added xtimer_set64()
2018-04-09 16:19:44 +02:00
Joakim Nohlgård
0befe39333 xtimer: Add XTIMER_SHIFT = 6 automatic option 2018-04-05 12:21:42 +02:00
Josarn
bb7acca31e sys/include/xtimer: Added xtimer_set64() 2018-04-04 16:58:59 +02:00
Joakim Nohlgård
a4ba6c12bc xtimer: Set XTIMER_SHIFT to 0 if underlying timer is 32768 Hz 2017-10-10 12:20:04 +02:00
e8aacc19ce sys/xtimer: fix default config / XTIMER_WIDTH 2017-10-06 21:48:51 +02:00
smlng
b012cdb8ad xtimer: refine config macros
- auto set XTIMER_SHIFT relative to XTIMER_HZ
    - refine setting of XTIMER_WIDTH
2017-09-20 16:48:38 +02:00
35f329e05c sys/xtimer: add xtimer_set_timeout_flag() 2017-09-01 23:54:28 +02:00
Oleg Hahm
e420c7ad9e doc: xtimer: added missing documentation 2017-03-10 14:56:28 +01:00
Victor Arino
17d6d2a5b5 sys/xtimer: implement mutex lock with timeout 2017-01-12 13:20:26 +01:00
Joakim Nohlgård
a23bfc64ff xtimer: Introduce xtimer_diff, xtimer_less for comparing timestamps 2016-11-28 11:00:42 +01:00
Joakim Nohlgård
b5554dd7e0 xtimer: Introduce xtimer_now_usec convenience functions 2016-11-28 11:00:42 +01:00
Joakim Nohlgård
63e91151cd xtimer: Add tick conversion 2016-11-28 11:00:42 +01:00
Joakim Nohlgård
3d3efc3492 xtimer: Move ifdef outside Doxygen block 2016-11-28 11:00:42 +01:00
Joakim Nohlgård
4449ba4933 xtimer: Refactor xtimer_usleep_until and rename to xtimer_periodic_wakeup
Rewrote conditions for improved readability, and removed magic number 512
2016-07-29 13:05:02 +02:00
Joakim Nohlgård
6768ae9c1f xtimer: Rename timer_callback_t -> xtimer_callback_t 2016-07-06 22:23:06 +02:00
Joakim Nohlgård
7c70d3bc4f xtimer: Add Eistec copyright and author 2016-07-06 22:23:05 +02:00
Joakim Nohlgård
4d862955c2 xtimer: Rename XTIMER -> XTIMER_DEV 2016-07-06 22:23:04 +02:00
Joakim Nohlgård
8c90b1020b xtimer: Split header into API and implementation 2016-07-06 22:23:04 +02:00
46bd2f45d9 sys: xtimer: replace XTIMER_MASK with XTIMER_WIDTH in board config 2016-07-06 18:16:15 +02:00
Oleg Hahm
b5bec6a58b doc: xtimer: be a bit more precise 2016-04-26 13:55:54 +02:00