diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-18 15:29:20 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-18 15:29:20 +0000 |
commit | 01a811d27f05c73904200aaeaf618ed657b65283 (patch) | |
tree | b323e7d1c278130c57ab26ff9cc3c708adefc751 /os/hal/platforms/STM32F1xx/stm32_rcc.h | |
parent | c4a3d44d53f667cc73abf655542b2974a9b0bb93 (diff) | |
download | ChibiOS-01a811d27f05c73904200aaeaf618ed657b65283.tar.gz ChibiOS-01a811d27f05c73904200aaeaf618ed657b65283.tar.bz2 ChibiOS-01a811d27f05c73904200aaeaf618ed657b65283.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4206 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx/stm32_rcc.h')
-rw-r--r-- | os/hal/platforms/STM32F1xx/stm32_rcc.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/os/hal/platforms/STM32F1xx/stm32_rcc.h b/os/hal/platforms/STM32F1xx/stm32_rcc.h index 7e7147168..bdf4cb85f 100644 --- a/os/hal/platforms/STM32F1xx/stm32_rcc.h +++ b/os/hal/platforms/STM32F1xx/stm32_rcc.h @@ -214,8 +214,7 @@ *
* @api
*/
-#define rccEnableBKPInterface(lp) \
- rccEnableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp)
+#define rccEnableBKPInterface(lp) rccEnableAPB1((RCC_APB1ENR_BKPEN), lp)
/**
* @brief Disables BKP interface clock.
@@ -225,8 +224,7 @@ *
* @api
*/
-#define rccDisableBKPInterface(lp) \
- rccDisableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp)
+#define rccDisableBKPInterface(lp) rccDisableAPB1((RCC_APB1ENR_BKPEN), lp)
/**
* @brief Resets the Backup Domain interface.
@@ -265,14 +263,14 @@ *
* @api
*/
-#define rccDisablePWRInterface(lp) rccDisableAPB1(RCC_APB1ENR_BKPEN, lp)
+#define rccDisablePWRInterface(lp) rccDisableAPB1(RCC_APB1ENR_PWREN, lp)
/**
* @brief Resets the PWR interface.
*
* @api
*/
-#define rccResetPWRInterface() rccResetAPB1(RCC_APB1ENR_BKPRST)
+#define rccResetPWRInterface() rccResetAPB1(RCC_APB1RSTR_PWRRST)
/** @} */
/**
|