Skip to content

sys/{x,z}timer/Kconfig: fix compatibility modules#17160

Closed
leandrolanzieri wants to merge 2 commits intoRIOT-OS:masterfrom
leandrolanzieri:pr/sys/ztimer_xtimer_compat_kconfig
Closed

sys/{x,z}timer/Kconfig: fix compatibility modules#17160
leandrolanzieri wants to merge 2 commits intoRIOT-OS:masterfrom
leandrolanzieri:pr/sys/ztimer_xtimer_compat_kconfig

Conversation

@leandrolanzieri
Copy link
Copy Markdown
Contributor

Contribution description

Currently the xtimer/ztimer compatibility modules choice was optional in Kconfig, but we want one to be enabled when ztimer is selected.

Testing procedure

  • CI should pass

Issues/PRs references

Pointed out in #17137

@leandrolanzieri leandrolanzieri added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Nov 8, 2021
@github-actions github-actions bot added Area: Kconfig Area: Kconfig integration Area: sys Area: System Area: timers Area: timer subsystems labels Nov 8, 2021
@MrKevinWeiss MrKevinWeiss added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 8, 2021
@kfessel
Copy link
Copy Markdown
Contributor

kfessel commented Nov 8, 2021

Murdock seems not to like this (yet), is that expected?

@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

Murdock seems not to like this (yet), is that expected?

Nope, let's see now

@MrKevinWeiss
Copy link
Copy Markdown
Contributor

Is this obsolete now or just needs a rebase?

menuconfig MODULE_XTIMER
bool "xtimer"
depends on HAS_PERIPH_TIMER || MODULE_XTIMER_ON_ZTIMER || MODULE_ZTIMER_XTIMER_COMPAT
depends on HAS_PERIPH_TIMER
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note that ZTIMER_USEC could be provided by other timers than periph_timer as well. E.g. the periph_ptp would be one option, but it should be possible (even though likely not too sensible) to also run ZTIMER_USEC on top of an RTT. (Some applications will not behave well when the resolution of ZTIMER_USEC is > 30 us, though.)

If there is an easy fix to not depend on periph_timer when ztimer is as backend, this would be nice. Otherwise, I think this should get in as is and we should focus on getting rid of xtimer for good.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm I see, ok I'll try to look into this, but I'm suspecting such behaviour could end up again in a loop.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is really a niche scenario and xtimer is not going to stay, anyway. So I wouldn't spend more than 5 minutes on this, if I were in your shoes ;-)

@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

Is this obsolete now or just needs a rebase?

This should be no longer needed. We can close.

@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

#17165 solved this

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

Labels

Area: Kconfig Area: Kconfig integration Area: sys Area: System 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 Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants