-
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
sys/evtimer,ztimer: do not depend on ztimer_now64 #17357
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, please squash and remove the forced dependency, the test failure was expected.
the failing test: see #17357 (comment) is addressed in #17395 |
tests/evtimer_underflow/main.c
Outdated
@@ -58,6 +58,11 @@ void *worker_thread(void *arg) | |||
} | |||
} | |||
|
|||
void sleep_msec(uint16_t t) | |||
{ | |||
ztimer_sleep(ZTIMER_MSEC, t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should still be xtimer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squash right away and re-trigger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i did miss the disabled ci-flag :(
shall the runtest flag be added again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_underflow
withUSEMODULE=evtimer_on_ztimer
Issues/PRs references