[riot-notifications] [RIOT-OS/RIOT] tests: Added tests for gpio_init_int() on ATmega boards (#11923)

Marian Buschsieweke notifications at github.com
Fri Jul 26 11:50:27 CEST 2019


### Contribution description

This PR adds a test that tests `gpio_init_int()` on ATmega boards, which differs in two major points from the existing test for `gpio_init_int()`:

- It can be compiled for ATmega328P based boards
- It takes the pin changed interrupts of the ATmega into account. (A single interrupt vector for 8 pins.)

### Testing procedure

Build, flash and run the provided test on a couple of ATmega based boards

- [ ] ATmega32U4 based board (`arduino-leonardo`)
- [ ] ATmega256RF2 based board (`jiminy-mega256rf2`)
- [ ] ATmega328P based board (`arduino-uno` or `arduino-nano`)
- [ ] ATmega1281 based board (`waspmote-pro`)
- [ ] ATmega1284P based board (`mega-xplained` or the not yet mainlined INGA board)
- [ ] ATmega2560 based board (`arduino-mega2560`)

### Issues/PRs references

Depends on and includes https://github.com/RIOT-OS/RIOT/pull/11122
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * cpu/atmega_common: adds pin change interrupts.
  * tests: Added test for gpio_init_int on ATmegas

-- File Changes --

    M boards/arduino-mega2560/doc.txt (5)
    A boards/arduino-mega2560/include/atmega_pcint.h (16)
    M boards/arduino-uno/doc.txt (5)
    A boards/common/atmega/doc.txt (17)
    M boards/jiminy-mega256rfr2/doc.txt (5)
    M boards/mega-xplained/doc.txt (6)
    M boards/waspmote-pro/doc.txt (6)
    M cpu/atmega1281/Makefile.features (4)
    M cpu/atmega1281/Makefile.include (5)
    A cpu/atmega1281/include/atmega_pcint.h (16)
    M cpu/atmega1284p/Makefile.features (5)
    M cpu/atmega1284p/Makefile.include (5)
    A cpu/atmega1284p/include/atmega_pcint.h (17)
    A cpu/atmega2560/Makefile.dep (6)
    M cpu/atmega2560/Makefile.features (4)
    M cpu/atmega2560/Makefile.include (5)
    A cpu/atmega2560/include/atmega_pcint.h (16)
    A cpu/atmega256rfr2/include/atmega_pcint.h (15)
    M cpu/atmega328p/Makefile.features (4)
    M cpu/atmega328p/Makefile.include (5)
    A cpu/atmega328p/include/atmega_pcint.h (16)
    A cpu/atmega_common/Makefile.dep (24)
    M cpu/atmega_common/Makefile.features (2)
    M cpu/atmega_common/Makefile.include (28)
    M cpu/atmega_common/periph/gpio.c (252)
    A tests/periph_gpio_pcint/Makefile (16)
    A tests/periph_gpio_pcint/main.c (309)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11923.patch
https://github.com/RIOT-OS/RIOT/pull/11923.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/11923
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190726/8aef1228/attachment-0001.htm>


More information about the notifications mailing list