[riot-notifications] [RIOT-OS/RIOT] cpu/saml21: extend and fix exti configuration for saml21 variants [backport 2019.01] (#10907)

Alexandre Abadie notifications at github.com
Wed Jan 30 19:16:48 CET 2019


# Backport of #10794

<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### 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.

<!--
Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes
-->


### 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.

<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->


### Issues/PRs references

Found while reviewing #10653 

<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/10907

-- Commit Summary --

  * cpu/saml21: extends exti configuration for saml21 variants

-- File Changes --

    M cpu/saml21/include/periph_cpu.h (33)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/10907.patch
https://github.com/RIOT-OS/RIOT/pull/10907.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10907
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190130/27a62035/attachment-0001.html>


More information about the notifications mailing list