aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F1xx
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-19 11:47:12 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-19 11:47:12 +0000
commitc1a1893307e154fa295f2fbf1d873e0471c0fd81 (patch)
tree51ad1af9dff1abc0840a32fa653910541000944e /os/hal/platforms/STM32F1xx
parent3b722ddd33c72c9101bd622a0ae6f8699d1fd46a (diff)
downloadChibiOS-c1a1893307e154fa295f2fbf1d873e0471c0fd81.tar.gz
ChibiOS-c1a1893307e154fa295f2fbf1d873e0471c0fd81.tar.bz2
ChibiOS-c1a1893307e154fa295f2fbf1d873e0471c0fd81.zip
small fix in RCC helper for RTC
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3347 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx')
-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.