-
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/fido2: use ztimer instead of xtimer #17753
Conversation
- for ctap hid timeouts xtimer was used, use ztimer64_msec instead since the code is using absolute times, an already using ztimer_msec - use event_timeout_ztimer instead of event_timeout to not pull in xtimer
Changes look good. ACK from me |
Thanks for the review @Ollrogge, could a maintainer take a look and eventually ACK, I think it should be good since @Ollrogge is the contributor here. Maybe @kfessel or @kaspar030? |
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'm a bit surprised ztimer64_msec
is needed though
I don't think it is, but this was the easiest approach for me that does not understand the fido2 code in detail, it limits this PR to a timer backend change and not the ctap timeout logic, @Ollrogge can probably state better but the timeout code could be reworked to rely on 32bit timeouts? |
Yes it can be reworked. Changing it from 64 bit to 32 bit should have no implications |
Contribution description
Before
fido2
was usingxtimer
andztimer
while not making thextimer
dependency explicit, this PR usesztimer
orztimer64
everywhere wherextimer
was used.since the code is using absolute times, an already using ztimer_msec
xtimer
The code could probably be refactored to not require 64bit, but the GOAL of this PR is just to not require the
64BITS
xtimer API.Testing procedure
Green murdock should be enough.