-
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/native: Switch to ztimer for gettimeofday #19349
Conversation
I don't know if we would want to keep xtimer stuff around. Open to opinions! |
cpu/native/Makefile.dep
Outdated
# requires 64bit timestamps | ||
USEMODULE += ztimer64_xtimer_compat | ||
endif | ||
USEMODULE += ztimer |
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.
This should be just ztimer64_usec
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.
Many places use the USEMODULE += ztimer
as an entry point and ztimer_usec
to select the backend. I can remove it if you want...
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.
hm, one implies the other. no need to list the deps of the deps IMO. as you like! but, it's "ztimer64_usec" that is used, not "ztimer_usec"
cpu/native/Makefile.dep
Outdated
USEMODULE += ztimer | ||
USEMODULE += ztimer_usec |
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.
USEMODULE += ztimer | |
USEMODULE += ztimer_usec | |
USEMODULE += ztimer64_usec |
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.
Done
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.
Maybe it's my phone's diff view, but it still shows ztimer_msec
vs. ztimer64_msec
(also for Kconfig)
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.
Ya, makes sense...
bors try |
tryBuild succeeded: |
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.
bors merge |
👎 Rejected by PR status |
5b5a383
to
89f2ae7
Compare
bors merge |
🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
bors merge |
Build succeeded: |
thanks! |
Contribution description
A xtimer is somewhat taken over by ztimer this explicitly uses ztimer instead of relying on the compatibility layer.
Testing procedure
make all test -C tests/cpp11_mutex/
and green murdock I guess.
Issues/PRs references