Conversation
|
Just successfully tested with the new Silicon Labs SLWSTK6220A board - which uses a 16-bit timer. |
Yay! 🍻 |
cpu/native/include/periph_conf.h
Outdated
There was a problem hiding this comment.
how about spending these some doxygen...
|
only some minor stuff (@kaspar: I know how you just love doxygen :-) ). Works with various boards with different sized timers. Regarding the backoff times: Can't we just define them once for every CPU family, and compute it somehow from the selected core clock value? This could save some configuration for each board/cpu... |
IMHO as a programmer you've made it if you can just pay someone to deal with doxygen. ;) |
Probably. The values are dependent on clock-speed, periph/timer implementation and a CPU's interrupt handling speed. I thought about calibrating the values at boot time, if we could spare a tenth of a second there, or, as a first step, writing a test that determines the correct values. |
|
a80261f to
03fda4e
Compare
|
|
could you please rebase? |
03fda4e to
c829467
Compare
|
70468b8 to
38d8cfb
Compare
|
979ce90 to
5a5063b
Compare
|
|
I cannot test the l1 (USART is not running properly for weird reasons on my PC), so I cannot see the output of the test, but I'm all in favor or merging this since all other boards I tested passed the tests and gnrc_networking runs also fine on iotlab-m3 and samr21-xpro. This feels like the most heavyweight ACK ever: ACK @kaspar030, awesome work! (Particular considering you reluctance to work ever on timers again.) This PR IMO improves RIOT a lot! I leave the honor of pushing the button to you - if you like. |
|
Nice! So go Travis, go! |
|
Travis failed due to some Travis internal things - but I am unable to restart those two jobs. Does somebody else have better luck? |
|
No, can't restart either... |
|
me neither.. |
|
what do we do? I guess we do not expect build errors for those two builds, so merger anyway? |
- 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
5a5063b to
e98a226
Compare
|
|
ETA: 30min :-) |
|
dammit, I got a flight to catch :) |
|
Come on, the flight can't be more important then merging this PR :-) |
|
Yeah, but it would be inconvenient to miss it. :) |
|
I see green! Everybody, thanks a lot for the painful reviewing! Let's cross fingers that this probably most intrusive change since RIOT's existence will turn out to be good. ;) GO. |
|
Kudos! |
|
awesome!!! |
|
Good (massive) work!
|
|
Yay. gz. |
|
Congratulations, to all of you! |
This PR contains changes that drop hwtimer+vtimer and use periph/timer and xtimer instead.
Depends on #2926, those commits will go away as soon as xtimer itself is in.(merged)I've included a small (and inefficient) vtimer wrapper which makes using xtimer a drop-in replacement. Even using that wrapper, the code and memory requirements are lower than using the original hwtimer+vtimer code in most cases, with a lot of room for improvements.
This is work in progress. A lot else will not work at the moment. I'm putting it out so people can comment and collaborate early.(no WIP anymore)(Depends on #3837)