1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32/periph_dac: support for RCC_APB1ENR1_DAC1EN

This commit is contained in:
Gunar Schorcht 2023-05-10 08:36:33 +02:00
parent b93328d14b
commit 63b4da3e1f

View File

@ -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