cpu/saml21: add compatibily headers for vendor files migration#20850
Merged
dylad merged 4 commits intoRIOT-OS:masterfrom Nov 8, 2024
Merged
cpu/saml21: add compatibily headers for vendor files migration#20850dylad merged 4 commits intoRIOT-OS:masterfrom
dylad merged 4 commits intoRIOT-OS:masterfrom
Conversation
Signed-off-by: Dylan Laduranty <[email protected]>
Signed-off-by: Dylan Laduranty <[email protected]>
mguetschow
approved these changes
Oct 29, 2024
Contributor
mguetschow
left a comment
There was a problem hiding this comment.
From a quick glance at the generating script and the changes, looks good to me. The CI doesn't complain and using the new defines in the periph_config.h shows that they are available as expected.
Let's get this merged then - thanks for your work! :)
Contributor
|
@dylad Looks like CI did find some issue with |
Member
Author
|
Yup, |
Signed-off-by: Dylan Laduranty <[email protected]>
Member
Author
|
I forgot to add compatibility headers for SAMR34/SAMR30 (which are SAML21-based in fact) |
Signed-off-by: Dylan Laduranty <[email protected]>
Member
Author
|
Looks like the Murdock failure is unrelated (board native). Retry. |
Member
Author
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR introduces new compatibility headers for SAML21 MCUs.
New vendor files introduces a small syntax changes in the name of single bit bitfield. There are all now all suffixed with
_MskFor instance, using the old vendor files, a single bit bitfield would look like:
register = FOO_BAR_1 | FOO_BAR_2;With the new headers, it should now look like:
register = FOO_BAR_1_Msk | FOO_BAR_2_Msk;Thus, the idea is to introduce compatibility headers alongside the current (old) headers that RIOT have. Then, to update boards and peripherals driver to match the new syntax.
These files will be deleted as well as old headers at the end of the migration phase.
These files were created using this script
SAML21-based boards configuration using old syntax were convert while at it.
Testing procedure
CI should be enough. This doesn't have any impact on the code or binary size.
Issues/PRs references
Second step of the ongoing Microchip vendor files migration (see #20457)