[riot-commits] [RIOT-OS/RIOT] 658f6d: cpu/stm32/gpio: fix EXTI flag clearing

José Alamos noreply at github.com
Tue Feb 2 11:37:11 CET 2021


  Branch: refs/heads/2021.01-branch
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 658f6de32c46c5a947124029afe6159dd456569f
      https://github.com/RIOT-OS/RIOT/commit/658f6de32c46c5a947124029afe6159dd456569f
  Author: Vincent Dupont <vincent at otakeys.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

  Changed paths:
    M cpu/stm32/periph/gpio_all.c

  Log Message:
  -----------
  cpu/stm32/gpio: fix EXTI flag clearing

In case a non-gpio EXTI (>= 16) is pending, the isr_exti() used to clear
the flag and try to call a callback, which was out-of-bouds, thus
generating a hard fault.
This fixes it by masking the pending_isr variables with 0xFFFF.

(cherry picked from commit 3e8e109e8bd0213004a2174172832a58a8ed9270)


  Commit: ce1ca918bd27b2caadf9eb366955220bbf40698a
      https://github.com/RIOT-OS/RIOT/commit/ce1ca918bd27b2caadf9eb366955220bbf40698a
  Author: José Alamos <jose at alamos.cc>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M cpu/stm32/periph/gpio_all.c

  Log Message:
  -----------
  Merge pull request #15905 from benpicco/backport/2021.01/pr/stm32-fix-exti

cpu/stm32/gpio: fix EXTI flag clearing [backport 2021.01]


Compare: https://github.com/RIOT-OS/RIOT/compare/36e102a81c3c...ce1ca918bd27


More information about the commits mailing list