Skip to content

cpu/saml21: extend and fix exti configuration for saml21 variants [backport 2019.01]#10907

Merged
aabadie merged 1 commit into
RIOT-OS:2019.01-branchfrom
aabadie:backport/2019.01/pr/cpu/saml21_exti_fix
Jan 31, 2019
Merged

cpu/saml21: extend and fix exti configuration for saml21 variants [backport 2019.01]#10907
aabadie merged 1 commit into
RIOT-OS:2019.01-branchfrom
aabadie:backport/2019.01/pr/cpu/saml21_exti_fix

Conversation

@aabadie

@aabadie aabadie commented Jan 30, 2019

Copy link
Copy Markdown
Contributor

Backport of #10794

Contribution description

While reviewing #10653, I tested different things on samr30-xpro to verify there were no regressions introduced by the port. Indeed, the saml1x works relies a lot on saml21 cpus and samr30 are fully based on saml21 cpus (they are the same with a radio, like samr21 compared to samd21).

During my tests, I noticed the tests/buttons was broken: the on-board button gpio couldn't be initialized with IRQ.

After a look at the code, I found that the exti configuration was the same for all types of saml21 cpus which is wrong according the datasheet.

This PR is adding the missing configuration and, in the meantime, it fixes the broken tests/buttons application on samr30-xpro boards.

Testing procedure

  • Flash and run tests/buttons application on samr30-xpro/saml21-xpro and verify that it works. on master, with samr30-xpro, you get an initialization failure, with this PR everything works smoothly.

Issues/PRs references

Found while reviewing #10653

Added a configuration for saml21g18a and fixes the configuration for samr30g18a

(cherry picked from commit 7cf3510)
@aabadie aabadie added Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Jan 30, 2019
@aabadie aabadie requested a review from dylad January 30, 2019 18:17
@aabadie aabadie added this to the Release 2019.01 milestone Jan 30, 2019
@aabadie

aabadie commented Jan 30, 2019

Copy link
Copy Markdown
Contributor Author

I pushed the branch by mistake to the upstream repo and removed it after. My personal fork is not called origin locally, I messed up with that when using the backport script PR.

@aabadie aabadie requested a review from miri64 January 30, 2019 19:11
@aabadie

aabadie commented Jan 31, 2019

Copy link
Copy Markdown
Contributor Author

@miri64, can you review this and merge ? Thanks!

@aabadie

aabadie commented Jan 31, 2019

Copy link
Copy Markdown
Contributor Author

or maybe @emmanuelsearch ?

@aabadie

aabadie commented Jan 31, 2019

Copy link
Copy Markdown
Contributor Author

ping, I can't ACK my own PR... And there's another backport in the pipe

@dylad dylad left a comment

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.

ping, I can't ACK my own PR

This is for your sake ;)

Untested ACK like #10794

@aabadie aabadie merged commit b5c87e3 into RIOT-OS:2019.01-branch Jan 31, 2019
@aabadie aabadie deleted the backport/2019.01/pr/cpu/saml21_exti_fix branch July 4, 2019 17:03
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 CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines 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.

2 participants