[riot-commits] [RIOT-OS/RIOT] ba8dfc: cpu/sam0_common/gpio: don't hard-code number of ports

Dylan Laduranty noreply at github.com
Thu Sep 12 20:17:13 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ba8dfc834172c36aa71b61ad789dd63340c5d3c9
      https://github.com/RIOT-OS/RIOT/commit/ba8dfc834172c36aa71b61ad789dd63340c5d3c9
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2019-08-29 (Thu, 29 Aug 2019)

  Changed paths:
    M cpu/sam0_common/periph/gpio.c

  Log Message:
  -----------
  cpu/sam0_common/gpio: don't hard-code number of ports

_exti() always assumes only 2 ports, so it will always fail when using
e.g. port C or port D on same54.

Instead, determine the number of ports from the dimensions of the exti_config
array.


  Commit: 88fe7afe2b7407f9561f03c1408f8bcb59013fc6
      https://github.com/RIOT-OS/RIOT/commit/88fe7afe2b7407f9561f03c1408f8bcb59013fc6
  Author: Dylan Laduranty <dylan.laduranty at mesotic.com>
  Date:   2019-09-12 (Thu, 12 Sep 2019)

  Changed paths:
    M cpu/sam0_common/periph/gpio.c

  Log Message:
  -----------
  Merge pull request #12121 from benpicco/sam0-fix_exti

cpu/sam0_common/gpio: don't hard-code number of ports


Compare: https://github.com/RIOT-OS/RIOT/compare/03c467af75c7...88fe7afe2b74


More information about the commits mailing list