diff --git a/cpu/stm32/periph/dac.c b/cpu/stm32/periph/dac.c index c043269711..1c15c508e3 100644 --- a/cpu/stm32/periph/dac.c +++ b/cpu/stm32/periph/dac.c @@ -33,8 +33,10 @@ #endif /* get RCC bit */ -#ifdef RCC_APB1ENR_DAC1EN +#if defined(RCC_APB1ENR_DAC1EN) #define RCC_BIT (RCC_APB1ENR_DAC1EN) +#elif defined(RCC_APB1ENR1_DAC1EN) +#define RCC_BIT (RCC_APB1ENR1_DAC1EN) #else #define RCC_BIT (RCC_APB1ENR_DACEN) #endif