Skip to content

sys/ztimer: make ztimer_xtimer_compat use ztimer64_usec#17365

Closed
kaspar030 wants to merge 11 commits intoRIOT-OS:masterfrom
kaspar030:ztimer_xtimer_compat_64
Closed

sys/ztimer: make ztimer_xtimer_compat use ztimer64_usec#17365
kaspar030 wants to merge 11 commits intoRIOT-OS:masterfrom
kaspar030:ztimer_xtimer_compat_64

Conversation

@kaspar030
Copy link
Contributor

@kaspar030 kaspar030 commented Dec 9, 2021

Contribution description

This PR removes xtimer code. The API is still provided by wrapping on ztimer(64). (one step at a time).

This PR makes ztimer_xtimer_compat use ztimer64_usec. This should make it a drop-in replacement for xtimer.

Testing procedure

Issues/PRs references

Waiting for #17386

@kaspar030 kaspar030 added Impact: major The PR changes a significant part of the code base. It should be reviewed carefully CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Dec 9, 2021
@kaspar030
Copy link
Contributor Author

let's see ...

@github-actions github-actions bot added Area: build system Area: Build system Area: Kconfig Area: Kconfig integration Area: sys Area: System Area: timers Area: timer subsystems Area: network Area: Networking Area: tests Area: tests and testing framework labels Dec 9, 2021
@kaspar030 kaspar030 force-pushed the ztimer_xtimer_compat_64 branch 2 times, most recently from bee6104 to cb6d856 Compare December 13, 2021 12:17
@github-actions github-actions bot added Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation Platform: ESP Platform: This PR/issue effects ESP-based platforms labels Dec 13, 2021
@kaspar030 kaspar030 added State: waiting for other PR State: The PR requires another PR to be merged first and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Dec 13, 2021
@benpicco
Copy link
Contributor

Shouldn't we deprecate it first?

@kaspar030
Copy link
Contributor Author

Shouldn't we deprecate it first?

Well, the API still works, there's a 100% replacement now. We could keep xtimer. honestly, removing was just much easier.

@kaspar030 kaspar030 force-pushed the ztimer_xtimer_compat_64 branch from f38526c to bc8187b Compare December 13, 2021 16:07
@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 Dec 13, 2021
@kaspar030 kaspar030 force-pushed the ztimer_xtimer_compat_64 branch from 046bda8 to be4435f Compare December 14, 2021 22:41
@github-actions github-actions bot removed Platform: ESP Platform: This PR/issue effects ESP-based platforms Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation labels Dec 14, 2021
Copy link
Contributor

@fjmolinas fjmolinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe modify .murdock so Kconfig is not built? lets look at that in a second stage IMO

@fjmolinas
Copy link
Contributor

Maybe rebase on #17367 as well to fix the mulle issue ;)

@kaspar030 kaspar030 force-pushed the ztimer_xtimer_compat_64 branch from be4435f to 6e229f0 Compare December 15, 2021 10:25
@github-actions github-actions bot removed Area: Kconfig Area: Kconfig integration Area: network Area: Networking Area: tests Area: tests and testing framework labels Dec 15, 2021
@fjmolinas fjmolinas added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 1, 2022
@kaspar030 kaspar030 marked this pull request as ready for review March 1, 2022 13:06
@fjmolinas fjmolinas force-pushed the ztimer_xtimer_compat_64 branch from 218fa71 to aceda58 Compare March 1, 2022 15:56
@kaspar030 kaspar030 requested a review from haukepetersen as a code owner March 1, 2022 15:56
@fjmolinas
Copy link
Contributor

Let's see If I fiddled out all the issues... will probably need to split some changes...

@kfessel kfessel mentioned this pull request Mar 1, 2022
@@ -0,0 +1,25 @@
ifneq (,$(filter xtimer,$(USEMODULE)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was not menat to be here, but as its never included it did not change anything

@fjmolinas
Copy link
Contributor

I split out all commits lets leave this one as is since it shows that with this the build succeeds!

@fjmolinas
Copy link
Contributor

This one can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation Area: Kconfig Area: Kconfig integration Area: network Area: Networking 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 Platform: native Platform: This PR/issue effects the native platform State: waiting for other PR State: The PR requires another PR to be merged first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants