sys/evtimer,ztimer: do not depend on ztimer_now64#17357
sys/evtimer,ztimer: do not depend on ztimer_now64#17357fjmolinas merged 14 commits intoRIOT-OS:masterfrom
Conversation
|
|
|
i just saw there is a convenience function hidden in evtimer.h: |
|
the loop in evtimer_underflow : main is blocking the timer that should be setup from triggering (in case of xtimer this is solved by xtimer_spin (which blocks the thread until the spin is over) |
|
I can't really see why |
|
@kfessel can you put a removeme commit to force |
|
every time i remove xtimer dependancy at one place i expose how xtimer depenacy is not expressed for other places |
|
I had the test fail on |
|
@fjmolinas : do you mind testing with master and |
dc4f160 to
f3e95f9
Compare
fjmolinas
left a comment
There was a problem hiding this comment.
ACK, please squash and remove the forced dependency, the test failure was expected.
tests/evtimer_underflow/main.c
Outdated
|
|
||
| void sleep_msec(uint16_t t) | ||
| { | ||
| ztimer_sleep(ZTIMER_MSEC, t); |
There was a problem hiding this comment.
Squash right away and re-trigger
There was a problem hiding this comment.
i did miss the disabled ci-flag :(
shall the runtest flag be added again?
There was a problem hiding this comment.
No the failures was unrelated, only ci-build is fine
xtimer for short timouts is blocking (spin) this was needed for this test to pass by sleeping in main we no longer need the timer set to wait
Contribution description
evtimer uses 32 bits of msec -> there is no reason to pull ztimer_now64
Testing procedure
run evtimer tests
evtimer_mbox, evtimer_msg, evtimer_underflowwithUSEMODULE=evtimer_on_ztimerIssues/PRs references