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

56 Commits

Author SHA1 Message Date
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
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
Ian Martin
963f8a495d sys/xtimer: eliminate XTIMER_SHIFT_ON_COMPARE 2016-04-18 12:06:20 -04:00
Martine Lenders
0620028e90 xtimer: doc: document required initialization of target fields 2016-03-31 19:08:53 +02:00
Joakim Nohlgård
9f6d5c3d34 Merge pull request #4183 from gebart/pr/xtimer-spin-overflow
xtimer: Handle overflows in xtimer_spin()
2016-03-22 06:38:19 +01:00
Joakim Nohlgård
bc88a4aec7 sys/xtimer: Fix doxygen for XTIMER_SHIFT 2016-03-19 13:43:16 +01:00
Joakim Nohlgård
d95e7a3572 xtimer: Handle overflows in xtimer_spin() 2016-03-14 11:19:58 +01:00
Joakim Nohlgård
c3b7f640a0 sys/xtimer: Remove unused XTIMER_USLEEP_UNTIL_OVERHEAD 2016-03-14 08:26:44 +01:00
9e3081849e sys: xtimer: fix some race conditions 2016-03-09 01:51:59 +01:00
Ian Martin
856c5e1539 s/XTIMER_RSHIFT/XTIMER_USEC_TO_TICKS/g
s/XTIMER_LSHIFT/XTIMER_TICKS_TO_USEC/g
2016-03-01 15:18:45 -05:00
Ian Martin
3c275370c3 xtimer: support a negative XTIMER_SHIFT. 2016-03-01 15:15:19 -05:00
Ian Martin
f86c118594 xtimer: define XTIMER_RSHIFT() and XTIMER_LSHIFT() macros to avoid using XTIMER_SHIFT directly. 2016-03-01 15:15:19 -05:00
Joakim Nohlgård
d1b4e7a70b xtimer: Rename _xtimer_now() -> _lltimer_now()
This matches _lltimer_set() and _lltimer_mask()
2015-10-28 13:54:54 +01:00
Joakim Nohlgård
d432bb42b0 xtimer: rename _mask -> _lltimer_mask 2015-10-28 13:52:25 +01:00
Joakim Nohlgård
07f95cfdfa xtimer: xtimer_spin_until(): value -> target 2015-10-28 13:51:23 +01:00
Joakim Nohlgård
e93840e68b xtimer: Use USEC_IN_NS for nanosleep 2015-10-28 13:51:23 +01:00
Joakim Nohlgård
0fafe6c1a1 xtimer: small cleanups 2015-10-28 13:51:23 +01:00
Joakim Nohlgård
0c41304dcd sys/xtimer: Fix small typo in documentation 2015-09-28 14:23:27 +02:00
a719e7d61f sys: xtimer: some updates
- more robust underflow protection in xtimer_usleep_until()
- use relative target in xtimer_spin()
- honour reference in isr when spinning until timer target
- add XTIMER_BACKOFF to xtimer_spin_until() target when backing off in
  _timer_set_absolute()
- doxygen updates
2015-09-16 12:34:31 +02:00