-
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
periph/timer: fix Kconfig menu title #17830
Conversation
@leandrolanzieri The following question arose in relation to Why does the CPU-specific timer configuration depend on RIOT/drivers/periph_common/Kconfig.timer Lines 43 to 46 in c4c50c5
KCONFIG_USEMODULE_PERIPH_TIMER is enabeld?
It was your suggestion in PR #14848 (comment) to add this whith the note that it isn't a conditional inclusion. But in in fact it seems to be conditional:
The entry doesn't become visible because |
c26cf3f
to
2851d6c
Compare
Not necessarily related to this PR which is focusing on Timer, but the alphabetical order is still wrong: PWM config should be after Power Management config. |
This should be used only for configuration symbols (i.e., CFLAGS), not modules. You can find documentation on how we are handling configurations during the transition phase here.
On this table you can find the reserved prefixes. The
Kconfig does not have conditional inclusion (in your case it is clear the file is sourced). When you wrap a |
Hm, but in case of
Therefore, I tried to move the configuration for ESP counter based timers to the So the question is why do we handle timers configuration in different way than I2C configuration.
Yes, I have seen this table, but I did not really get the description of |
We shouldn't, it's probably something I overlooked. It would be great if you could fix this on this PR by removing the
The original reason for these symbols, is that when we started migrating configuration symbols some users didn't want to be forced to use Kconfig to configure every module. These symbols are user switches, to enable the particular configuration of a given used module. |
OK, I will extend the PR a bit. Would it be ok also to move "Sumulate ESP with QEMU" into the "ESP configurations" menu with this PR? I would rename the PR a bit to something "cleanup ..."
|
Sure! |
@leandrolanzieri Hm, I'm still not completely satisfied with the way configurations that depend on other configurations are structured in the case of Timer. For example, I have changed the hardware counter selection for ESP32 so that it is displayed in
Once it is enabled, hardware counter selction appears. The output changes to
Since
The same we have for EFM32 if
|
This should happen if they are defined right after the symbol. Is your example based on the current state of the PR? It does not render like that to me. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
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.
Looks good and is correctly addressing the initial problem.
ACK
bors merge |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Contribution description
This PR is a very small fix of inconsistent peripheral driver entry in
Kconfig
forperiph/timer
.In Kconfig menu
(Top) → Drivers → Peripherals drivers
all entries start with the peripheral name in alphabetical order with only one exception, the timer entry. This entry is calledConfigure timer peripheral driver
:This is confusing and doesn't help to find the right entry. This PR
Timer peripheral driver
andTesting procedure
Use command
and check the output. in menu
(Top) → Drivers → Peripherals drivers
. It should be with this PR:Issues/PRs references