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

24 Commits

Author SHA1 Message Date
Benjamin Valentin
65093a47a3 cpu/native: timer: fix style issue 2021-02-23 09:52:05 +01:00
Benjamin Valentin
7eb159c2a2 cpu/native: timer: implement timer_set_periodic()
The native timer is not free running, so we can't honor it's flags.
But setitimer() already provides an interval option, we only have to enable it.
2021-02-23 09:51:53 +01:00
Marian Buschsieweke
125c892c03
drivers/periph/timer: Use uint32_t for frequency
For all currently supported platforms `unsigned long` is 32 bit in width. But
better use `uint32_t` to be safe.
2020-10-30 22:02:12 +01:00
Bas Stottelaar
22243aec7a cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
Sebastian Meiling
935bb51e14 cpu/native: adapt timer to return 0 on success
Adapt periph/timer implementation of native based MCUs
to return 0 on success for all functions.
2019-09-11 13:51:02 +02:00
f5345fbd38 cpu/native/periph/timer: fix undefined behaviour 2019-01-16 15:16:54 +01:00
4133908fe0 cpu/native: fix doxygen grouping 2018-06-11 19:12:02 +02:00
smlng
692cf96297 doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
Oleg Hahm
d0316fa7ae periph timer: remove timer_irq_(en|dis)able 2017-01-14 15:34:53 +01:00
Yonezawa-T2
6d4abb96dc native: workaround for thread_t name collision 2016-03-14 14:23:38 +09:00
Hauke Petersen
b11a3ad74b cpus: adapted timer implementations to API changes 2016-02-29 14:45:00 +01:00
Joakim Nohlgård
d24cdd7cde cpu/native: Update timer_init to match API changes 2016-02-13 21:29:36 +01:00
ceaeee5c5d Revert "native: periph/timer: prevent underflow in timer_set_absolute"
This reverts commit ec441e9aa6.
2016-01-06 22:07:13 +01:00
Joakim Nohlgård
cbaeccdb90 periph/timer: Drop timer_reset 2015-10-17 20:11:03 +02:00
Ludwig Knüpfer
eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 2015-09-27 18:58:30 +02:00
Hauke Petersen
1664bcbf59 native/timer: fix return value for invalid channel 2015-09-23 14:48:23 +02:00
2cd4a80054 cpu: native: minor timer-related doxygen updates 2015-09-16 10:58:53 +02:00
Thomas Eichinger
f841811a49 cpu/native: fix OS X includes and declarations 2015-09-02 17:34:47 +02:00
21238b2ccc Merge pull request #3347 from benoit-canet/timer
native: timer: synchronize HWTIMER_SPIN_BARRIER with native timer min resolution
2015-07-29 10:14:58 +02:00
d15f0990b3 Merge pull request #3344 from kaspar030/fix_native_timer_possible_underflow
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 22:17:44 +02:00
Benoît Canet
e01329796d native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
This keeps the test/hwtimer_wait test duration correct.
2015-07-09 20:42:21 +02:00
ec441e9aa6 native: periph/timer: prevent underflow in timer_set_absolute 2015-07-09 15:23:21 +02:00
Benoît Canet
e8e89d8ca9 native: timer: Do not cancel timer when setting it to 0 2015-07-09 15:08:47 +02:00
fe96d379f6 native: add periph/timer.h timer implementation 2015-07-09 02:43:04 +02:00