Skip to content
Permalink
Browse files

drivers: interrupt_controller: Add STM32L1X EXTI support

Add EXTI support for STM32L1X SoC series.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  • Loading branch information...
Mani-Sadhasivam authored and galak committed Feb 1, 2019
1 parent 1eb6177 commit 0525019b23e6e16ac34e72ff351f89b904eb6857
Showing with 8 additions and 0 deletions.
  1. +4 −0 drivers/interrupt_controller/exti_stm32.c
  2. +4 −0 soc/arm/st_stm32/stm32l1/soc.h
@@ -41,6 +41,8 @@
#define EXTI_LINES 24
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
#define EXTI_LINES 30
#elif defined(CONFIG_SOC_SERIES_STM32L1X)
#define EXTI_LINES 24
#elif defined(CONFIG_SOC_SERIES_STM32L4X)
#define EXTI_LINES 40
#elif defined(CONFIG_SOC_SERIES_STM32MP1X)
@@ -127,6 +129,7 @@ int stm32_exti_enable(int line)
defined(CONFIG_SOC_SERIES_STM32F3X) || \
defined(CONFIG_SOC_SERIES_STM32F4X) || \
defined(CONFIG_SOC_SERIES_STM32F7X) || \
defined(CONFIG_SOC_SERIES_STM32L1X) || \
defined(CONFIG_SOC_SERIES_STM32L4X) || \
defined(CONFIG_SOC_SERIES_STM32WBX)
if (line >= 5 && line <= 9) {
@@ -585,6 +588,7 @@ static void __stm32_exti_connect_irqs(struct device *dev)
defined(CONFIG_SOC_SERIES_STM32F3X) || \
defined(CONFIG_SOC_SERIES_STM32F4X) || \
defined(CONFIG_SOC_SERIES_STM32F7X) || \
defined(CONFIG_SOC_SERIES_STM32L1X) || \
defined(CONFIG_SOC_SERIES_STM32L4X) || \
defined(CONFIG_SOC_SERIES_STM32MP1X) || \
defined(CONFIG_SOC_SERIES_STM32WBX)
@@ -43,6 +43,10 @@
#include <stm32l1xx_ll_gpio.h>
#endif

#ifdef CONFIG_EXTI_STM32
#include <stm32l1xx_ll_exti.h>
#endif

#endif /* !_ASMLANGUAGE */

#endif /* _STM32L1_SOC_H_ */

0 comments on commit 0525019

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