From c1a1893307e154fa295f2fbf1d873e0471c0fd81 Mon Sep 17 00:00:00 2001 From: barthess Date: Mon, 19 Sep 2011 11:47:12 +0000 Subject: 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 --- os/hal/platforms/STM32F1xx/stm32_rcc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'os/hal') 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. -- cgit v1.2.3