diff --git a/cpu/stm32/periph/gpio_ll_irq.c b/cpu/stm32/periph/gpio_ll_irq.c index 436cde4651..6a6794ce3b 100644 --- a/cpu/stm32/periph/gpio_ll_irq.c +++ b/cpu/stm32/periph/gpio_ll_irq.c @@ -84,10 +84,8 @@ #ifdef RCC_APB2ENR_SYSCFGCOMPEN # define SYSFG_CLOCK APB2 # define SYSFG_ENABLE_MASK RCC_APB2ENR_SYSCFGCOMPEN -#endif - -#ifdef RCC_APBENR2_SYSCFGEN -# define SYSFG_ENABLE_MASK RCC_APBENR2_SYSCFGEN +#elif defined(RCC_APB2ENR_SYSCFGEN) +# define SYSFG_ENABLE_MASK RCC_APB2ENR_SYSCFGEN # ifdef APB12 # define SYSFG_CLOCK APB12 # else