-
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
cpu/avr8: model kconfig #16929
cpu/avr8: model kconfig #16929
Conversation
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.
lgtm :-)
ping @maribu |
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.
ACK :-)
This needs a rebase |
899b27f
to
90a7996
Compare
Rebased |
it seems the rebase introduced some differences, for one the make version of |
side note, maybe we should get murdock to run something like |
I added f41b8a2. AFAIU |
Some background for the The If code includes I think that the hard dependency on |
This introduces a Kconfig file for boards that cannot reach a timer frequency compatible with xtimer. For those boards, in the case xtimer is pulled, ztimer is used instead (as backend) with a compatibility module.
Modelled boards: arduino-duemilanove arduino-leonardo arduino-mega2560 arduino-nano arduino-uno atmega1284p atmega256rfr2-xpro atmega328p-xplained-mini atmega328p atxmega-a1-xplained atxmega-a1u-xpro atxmega-a3bu-xplained avr-rss2 derfmega128 derfmega256 mega-xplained microduino-corerf zigduino
The option list has been taken from https://code.google.com/archive/p/libfixmath/wikis/CompilationOptions.wiki. The defaults are the current ones.
Looks like everything is there, any objections? |
Phew. It would have been a pity if that had to go another round just because yet another merge conflict ... |
Thanks everyone ! |
config MODULE_AT24MAC | ||
bool "AT24MAC unique ID chip" | ||
bool | ||
prompt "AT24MAC unique ID chip" if !(MODULE_EUI_PROVIDER && HAVE_AT24MAC) |
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.
It seems for the same54-xpro, MODULE_MTD
would also bring in MODULE_AT24MAC
Contribution description
This models the Kconfig modules for all avr8-based CPUs and boards. I only included a subset of the enabled boards for CI testing, one per modelled CPU model. The complete list is:
A note on driver modelling
This also includes some changes on the modelling of certain drivers. The idea is that platforms can select
HAVE_
hidden symbols to indicate on-board hardware, and then drivers can use this information to change their default value (e.g. a sensor driver would enable itself if the platform has it andMODULE_SAUL_DEFAULT
is selected). To deal with this default, without falling into this issue, the prompts are hidden. The approach has been discussed offline with @fjmolinas and @MrKevinWeiss, but of course open for discussion.For examples of this see 00b61cc and 0f960c2.
Testing procedure
make info-modules
list with and withoutTEST_KCONFIG=1
, they should match.Issues/PRs references
#16875