sys/arduino: replace xtimer by ztimer as high-level background timer#15317
sys/arduino: replace xtimer by ztimer as high-level background timer#15317fjmolinas merged 2 commits intoRIOT-OS:masterfrom
Conversation
1e71a7a to
26bed0f
Compare
|
Hmm the |
|
Ztimer seems to just be heavier:
|
And |
|
So what is the conclusion here @aabadie? Should we move forward? Can we refactor the application so more constant data is stored in FLASH? |
|
Ping @aabadie do you still care about this one? |
A bit, but we should first fix the problem with ztimer msec backend selection if RTT is available and frequency is fast enough. Are you willing to work on that ? That would be awesome :) |
Is this problem still present with the fix to kinetis merged I think all BOARDS providing rtt can do ztimer_msec. |
sys/Makefile.dep
Outdated
| USEMODULE += ztimer_usec | ||
| USEMODULE += ztimer_msec | ||
| ifneq (,$(filter periph_rtt,$(USEMODULE))) | ||
| USEMODULE += ztimer_msec_periph_rtt | ||
| endif |
There was a problem hiding this comment.
| USEMODULE += ztimer_usec | |
| USEMODULE += ztimer_msec | |
| ifneq (,$(filter periph_rtt,$(USEMODULE))) | |
| USEMODULE += ztimer_msec_periph_rtt | |
| endif | |
| USEMODULE += ztimer_usec | |
| USEMODULE += ztimer_msec |
There was a problem hiding this comment.
Thanks, exactly what I needed !
Lets just blacklist |
|
Please rebase @aabadie! |
|
Ping @aabadie, I can directly push force otherwise |
26bed0f to
e30a107
Compare
Contribution description
This PR replaces xtimer by ztimer as high-level background timer for delay/delayMicroseconds/millis/micros functions.
Testing procedure
tests/sys_arduinoshould still work:nucleo-l412kb
Issues/PRs references
None