diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-19 11:47:12 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-19 11:47:12 +0000 |
commit | c1a1893307e154fa295f2fbf1d873e0471c0fd81 (patch) | |
tree | 51ad1af9dff1abc0840a32fa653910541000944e /os/hal/platforms | |
parent | 3b722ddd33c72c9101bd622a0ae6f8699d1fd46a (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/platforms/STM32F1xx/stm32_rcc.h | 6 |
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.
|