aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F1xx/stm32_rcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32F1xx/stm32_rcc.h')
-rw-r--r--os/hal/platforms/STM32F1xx/stm32_rcc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32F1xx/stm32_rcc.h b/os/hal/platforms/STM32F1xx/stm32_rcc.h
index 7735b2034..7f215a720 100644
--- a/os/hal/platforms/STM32F1xx/stm32_rcc.h
+++ b/os/hal/platforms/STM32F1xx/stm32_rcc.h
@@ -214,7 +214,8 @@
*
* @api
*/
-#define rccEnableBKP(lp) rccEnableAPB1(RCC_APB1ENR_BKPEN, lp);
+#define rccEnableBKP(lp) \
+ rccEnableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp);
/**
* @brief Disables BKP interface clock.
@@ -224,7 +225,8 @@
*
* @api
*/
-#define rccDisableBKP(lp) rccDisableAPB1(RCC_APB1ENR_BKPEN, lp);
+#define rccDisableBKP(lp) \
+ rccDisableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp);
/**
* @brief Resets the Backup Domain.