@@ -71,7 +71,7 @@ static gpio_irq_conf_str gpio_irq_conf[NB_EXTI] = {
7171 {.irqnb = EXTI4_15_IRQn, .callback = NULL }, // GPIO_PIN_13
7272 {.irqnb = EXTI4_15_IRQn, .callback = NULL }, // GPIO_PIN_14
7373 {.irqnb = EXTI4_15_IRQn, .callback = NULL } // GPIO_PIN_15
74- #elif defined (STM32MP1xx)
74+ #elif defined (STM32MP1xx) || defined (STM32L5xx)
7575 {.irqnb = EXTI0_IRQn, .callback = NULL }, // GPIO_PIN_0
7676 {.irqnb = EXTI1_IRQn, .callback = NULL }, // GPIO_PIN_1
7777 {.irqnb = EXTI2_IRQn, .callback = NULL }, // GPIO_PIN_2
@@ -246,7 +246,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
246246 }
247247}
248248
249- #if defined (STM32G0xx) || defined (STM32MP1xx)
249+ #if defined (STM32G0xx) || defined (STM32MP1xx) || defined (STM32L5xx)
250250/* *
251251 * @brief EXTI line detection callback.
252252 * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
@@ -369,7 +369,7 @@ void EXTI4_IRQHandler(void)
369369 HAL_GPIO_EXTI_IRQHandler (GPIO_PIN_4);
370370}
371371
372- #if !defined(STM32MP1xx)
372+ #if !defined(STM32MP1xx) && !defined(STM32L5xx)
373373/* *
374374 * @brief This function handles external line 5 to 9 interrupt request.
375375 * @param None
@@ -395,7 +395,7 @@ void EXTI15_10_IRQHandler(void)
395395 HAL_GPIO_EXTI_IRQHandler (pin);
396396 }
397397}
398- #else /* STM32MP1xx */
398+ #else /* STM32MP1xx && STM32L5xx */
399399
400400/* *
401401 * @brief This function handles external line 5 interrupt request.
@@ -507,7 +507,7 @@ void EXTI15_IRQHandler(void)
507507 HAL_GPIO_EXTI_IRQHandler (GPIO_PIN_15);
508508}
509509
510- #endif /* !STM32MP1xx */
510+ #endif /* !STM32MP1xx && !STM32L5xx */
511511#ifdef __cplusplus
512512}
513513#endif
0 commit comments