aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c
index 194752673..527711054 100644
--- a/os/hal/platforms/STM32F4xx/hal_lld.c
+++ b/os/hal/platforms/STM32F4xx/hal_lld.c
@@ -74,7 +74,7 @@ static void hal_lld_backup_domain_init(void) {
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
#endif /* HAL_USE_RTC */
-#if HAL_USE_BKPSRAM
+#if STM32_BKPRAM_ENABLE
rccEnableBKPSRAM(false);
PWR->CSR |= PWR_CSR_BRE;
@@ -82,7 +82,7 @@ static void hal_lld_backup_domain_init(void) {
; /* Waits until the regulator is stable */
#else
PWR->CSR &= ~PWR_CSR_BRE;
-#endif /* HAL_USE_BKPSRAM */
+#endif /* STM32_BKPRAM_ENABLE */
}
/*===========================================================================*/