Skip to content
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/xtimer: introduce xtimer_is_set() #17630

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

kaspar030
Copy link
Contributor

Contribution description

There are cases where code is using internal xtimer struct members to figure out if a given xtimer is currentlly set. So, provide a function in the public API.

I've added some uses of this function (both ways, on set timers and unset timers) to xtimer_remove().

I consider this addition as an intermediate step, easing migration to ztimer_xtimer_compat.

Testing procedure

CI should be fine.

Issues/PRs references

@kaspar030 kaspar030 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 9, 2022
@github-actions github-actions bot added Area: sys Area: System Area: tests Area: tests and testing framework Area: timers Area: timer subsystems labels Feb 9, 2022
@kaspar030 kaspar030 merged commit 131c2d9 into RIOT-OS:master Feb 9, 2022
@kaspar030 kaspar030 deleted the xtimer_is_set branch February 9, 2022 17:30
@OlegHahm OlegHahm added this to the Release 2022.04 milestone Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: sys Area: System Area: tests Area: tests and testing framework Area: timers Area: timer subsystems CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants