Skip to content
Permalink
Browse files

drivers: stm32: Fix disabling EXTI subsystem

The compiler and linker was generating errors after
disabling `CONFIG_EXTI_STM32` due to inconsistency
in `interrupt_controller/CMakeLists.txt`
and not considering this option in gpio implementation.

Signed-off-by: Maciej Zagrabski <maciej.zagrabski@grinn-global.com>
  • Loading branch information...
Maciej Zagrabski authored and nashif committed May 22, 2019
1 parent f194982 commit 6a6264e4977946aeab738b40a199c9918e4ba727
Showing with 2 additions and 2 deletions.
  1. +1 −1 drivers/gpio/gpio_stm32.c
  2. +1 −1 drivers/interrupt_controller/CMakeLists.txt
@@ -273,7 +273,7 @@ static int gpio_stm32_config(struct device *dev, int access_op,
return -EIO;
}

if ((flags & GPIO_INT) != 0) {
if (IS_ENABLED(CONFIG_EXTI_STM32) && (flags & GPIO_INT) != 0) {

if (stm32_exti_set_callback(pin, cfg->port,
gpio_stm32_isr, dev) != 0) {
@@ -8,7 +8,7 @@ zephyr_sources_ifdef(CONFIG_MVIC mvic.c)
zephyr_sources_ifdef(CONFIG_PIC_DISABLE i8259.c)
zephyr_sources_ifdef(CONFIG_PLIC plic.c)
zephyr_sources_ifdef(CONFIG_SHARED_IRQ shared_irq.c)
zephyr_sources_ifdef(CONFIG_SOC_FAMILY_STM32 exti_stm32.c)
zephyr_sources_ifdef(CONFIG_EXTI_STM32 exti_stm32.c)
zephyr_sources_ifdef(CONFIG_CAVS_ICTL cavs_ictl.c)
zephyr_sources_ifdef(CONFIG_DW_ICTL dw_ictl.c)
zephyr_sources_ifdef(CONFIG_RV32M1_INTMUX rv32m1_intmux.c)

0 comments on commit 6a6264e

Please sign in to comment.
You can’t perform that action at this time.