net/gnrc/rpl: use ztimer_msec if available#16339
net/gnrc/rpl: use ztimer_msec if available#16339haukepetersen merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
Why have you decided against a hard switch to |
|
Because I wanted to keep the impact on existing applications as small as possible. I think the hard switch only makes sense once we have a joined decision to completely phase out xtimer once and for all... |
84d01f3 to
301786e
Compare
301786e to
b0c0c90
Compare
|
rebased |
b0c0c90 to
562b117
Compare
|
rebased |
|
Another rebase needed .. will look at this PR afterwards :) |
562b117 to
8d8dca1
Compare
|
rebased :-) |
cgundogan
left a comment
There was a problem hiding this comment.
Tested with native and USEMODULE+="ztimer_msec ztimer_usec". The timer operation looks still valid in wireshark.
|
Murdock is still complaining, though. |
8d8dca1 to
1beb7a4
Compare
|
Found the issue, there was #endif one line too early in |
1beb7a4 to
7c6b72d
Compare
|
Alright, Murdock is happy now and everything green -> go. |
Contribution description
With this PR RPL will use
ztimer_msecas timer wheneverztimer_msecis included in the build. This is needed forxtimer-free GNRC builds for getting to lower power consumption.One small quirk: when building with ztimer, the RPL shell commands does not show the remaining seconds until the trickle timer triggers next anymore. This is due to missing functionality in the
ztimer, and IMO it would be overkill to add this functionality into ztimer (or any other workaround in the trickle timer) just to get this debug information...Testing procedure
The default builds (e.g.
examples/gnrc_networking) should not change, as per default RPL will still use xtimer. But when building withztimer_msecincluded in the build, RPL should switch to useztimer_msec.This can be tested e.g. with two samr21-xpro nodes by running the
examples/gnrc_networkingexample while building it withUSEMODULE="ztimer_msec ztimer_periph_rtt" make ....Issues/PRs references
none