[riot-commits] [RIOT-OS/RIOT] 5a11fd: cpu/nrf51: define GPIO_COUNT

Alexandre Abadie noreply at github.com
Tue Feb 16 16:18:48 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 5a11fd2c663e00cf04af38edd81ca23ce7e617f1
      https://github.com/RIOT-OS/RIOT/commit/5a11fd2c663e00cf04af38edd81ca23ce7e617f1
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2021-02-14 (Sun, 14 Feb 2021)

  Changed paths:
    M cpu/nrf51/include/cpu_conf.h

  Log Message:
  -----------
  cpu/nrf51: define GPIO_COUNT

GPIO_COUNT is not defined in the vendor headers, but it's always one
for this family (one GPIO port).


  Commit: eb89482a7565cf9eecac33fd711c63ea9933e770
      https://github.com/RIOT-OS/RIOT/commit/eb89482a7565cf9eecac33fd711c63ea9933e770
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2021-02-14 (Sun, 14 Feb 2021)

  Changed paths:
    M cpu/nrf5x_common/include/periph_cpu_common.h
    M cpu/nrf5x_common/periph/gpio.c

  Log Message:
  -----------
  cpu/nrf5x_common: make GPIO_PIN macro model independent

We can use the `GPIO_COUNT` vendor macro to check if there is more than
one GPIO port on nRF52.
This is the case for nRF52840 and nRF52833.


  Commit: bcb23da368e93d6c37caa288f63113abf0ca3a6f
      https://github.com/RIOT-OS/RIOT/commit/bcb23da368e93d6c37caa288f63113abf0ca3a6f
  Author: Alexandre Abadie <alexandre.abadie at inria.fr>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M cpu/nrf51/include/cpu_conf.h
    M cpu/nrf5x_common/include/periph_cpu_common.h
    M cpu/nrf5x_common/periph/gpio.c

  Log Message:
  -----------
  Merge pull request #16005 from benpicco/cpu/nrf52_gpio_count

cpu/nrf5x_common: make GPIO_PIN macro model independent


Compare: https://github.com/RIOT-OS/RIOT/compare/856f24613117...bcb23da368e9


More information about the commits mailing list