Commit 6b4308f4 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Kumar Gala
Browse files

ext/hal: stm32cube: fix exti declaration in STM32L4



LL_EXTI_LINE_18 and LL_EXTI_LINE_20 are declared in stm32l4xx_hal_pcd.h
and in stm32l4xx_ll_exti.h which generates warnings. Set #ifndef
in stm32l4xx_ll_exti.h around declarations.
STBugtracker: 55275

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 0fca564d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -54,3 +54,12 @@ Patch List:
     CMakeLists.txt
     drivers/include/stm32l4xx_hal_conf.h
     drivers/src/Legacy/stm32l4_hal_can.c


   *Fix LL_EXTI_LINE_18 and LL_EXTI_LINE_20 declarations
     LL_EXTI_LINE_18 and LL_EXTI_LINE_20 are declared in stm32l4xx_hal_pcd.h
     and in stm32l4xx_ll_exti.h which generates warnings. Set #ifndef
     in stm32l4xx_ll_exti.h around declarations.
    Impacted files:
     drivers/include/stm32l4xx_ll_exti.h
    ST Bug tracker ID: 55275
+4 −0
Original line number Diff line number Diff line
@@ -124,12 +124,16 @@ typedef struct
#endif
#define LL_EXTI_LINE_17                EXTI_IMR1_IM17          /*!< Extended line 17 */
#if defined(EXTI_IMR1_IM18)
#ifndef LL_EXTI_LINE_18
#define LL_EXTI_LINE_18                EXTI_IMR1_IM18          /*!< Extended line 18 */
#endif
#endif
#define LL_EXTI_LINE_19                EXTI_IMR1_IM19          /*!< Extended line 19 */
#if defined(EXTI_IMR1_IM20)
#ifndef LL_EXTI_LINE_20
#define LL_EXTI_LINE_20                EXTI_IMR1_IM20          /*!< Extended line 20 */
#endif
#endif
#if defined(EXTI_IMR1_IM21)
#define LL_EXTI_LINE_21                EXTI_IMR1_IM21          /*!< Extended line 21 */
#endif