Skip to content
Commit dfda0cb1 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Kumar Gala
Browse files

gpio: stm32: support disabling and reenabling interrupts on gpio pin



Up to now interrupts could be only configured once, with no way to
disable them in runtime.

Allow interrupts to be disabled in runtime and then properly reenabled
on user request. This allows to ignore interrupts when software is not
expecting them.

The improvement over previously reverted patch [1] is that we disable
interrupts only when we configure port for which interrupt line was
previously selected. This for example prevents to disable interrupts
line 2 in case PA2 was previously configured as interrupt source, but we
are currently configuring PB2 as output.

[1] 0951ce2d ("gpio: stm32: support disabling and reenabling
  interrupts on pin")

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent 7edcbedc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment