-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu/cc2538/periph/timer overhaul #4878
Conversation
Just expanded the scope of this PR a bit. Added support to xtimer for a negative
|
Hi @hexluthor , thanks for your effort and "rebooting" whole thing. I try to counter check the periph_timer and xtimer_* asap. Have you noticed #4838 already? Maybe you can take it into account. |
Couldn't resist and made a quick check with periph_timer xtimer_hang and xtimer_usleep_until (the stinkers in #4729). No hangups! And, do you mind enclosing the numeric defines in parenthesis? |
@kaspar030 I would appreciate if you assist reviewing. In particular the xtimer stuff. |
The macro names |
@hexluthor, I ran all the tests. One fail.
|
@gebart, I agree the macro names aren't great. I'm open to suggestions. Originally I wanted |
So I can test this PR to ACK but I don't know if @gebart wants to change these macro names? |
I don't have any good suggestions for names, but I think |
needs rebase btw |
* Use the 32-bit counter mode. * Apply frequency scaling for non-16 MHz frequencies.
…ing XTIMER_SHIFT directly.
s/XTIMER_LSHIFT/XTIMER_TICKS_TO_USEC/g
6887131
to
856c5e1
Compare
Ok, rebased and I changed the macro names to |
I tested periph_timer and all xtimer, with success. Just waiting for travis to ACK. |
Incredible, travis failed because a signature verification failed... restarted... |
Done! ACK and go! |
tests/periph_timer
works now.Tested on
boards/cc2538dk
. The previous implementation used 16-bit counters and did not work properly.