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

benpicco noreply at github.com
Mon Feb 1 18:22:45 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 3e8e109e8bd0213004a2174172832a58a8ed9270
      https://github.com/RIOT-OS/RIOT/commit/3e8e109e8bd0213004a2174172832a58a8ed9270
  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.


  Commit: efd8afd3ab17bc544be93f5f869a169e95a5f488
      https://github.com/RIOT-OS/RIOT/commit/efd8afd3ab17bc544be93f5f869a169e95a5f488
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

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

  Log Message:
  -----------
  Merge pull request #15899 from OTAkeys/pr/stm32-fix-exti

cpu/stm32/gpio: fix EXTI flag clearing


Compare: https://github.com/RIOT-OS/RIOT/compare/a5e5ec52155f...efd8afd3ab17


More information about the commits mailing list