summaryrefslogtreecommitdiff
path: root/chip/stm32/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/system.c')
-rw-r--r--chip/stm32/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/system.c b/chip/stm32/system.c
index 605f095f95..d296a90fa5 100644
--- a/chip/stm32/system.c
+++ b/chip/stm32/system.c
@@ -193,7 +193,7 @@ void system_pre_init(void)
clock_wait_bus_cycles(BUS_APB, 1);
/* Enable access to RCC CSR register and RTC backup registers */
STM32_PWR_CR |= 1 << 8;
-#ifdef CHIP_FAMILY_STM32L4
+#ifdef CHIP_VARIANT_STM32L476
/* Enable Vddio2 */
STM32_PWR_CR2 |= 1 << 9;
#endif