From 31a099cb104ea4d7d957bb65bbdc7e8edbdbe636 Mon Sep 17 00:00:00 2001 From: barthess Date: Mon, 19 Sep 2011 13:54:07 +0000 Subject: RTC. Driver improvements git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3352 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F1xx/stm32_rcc.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'os/hal/platforms/STM32F1xx') diff --git a/os/hal/platforms/STM32F1xx/stm32_rcc.h b/os/hal/platforms/STM32F1xx/stm32_rcc.h index 7f215a720..9ca1140e9 100644 --- a/os/hal/platforms/STM32F1xx/stm32_rcc.h +++ b/os/hal/platforms/STM32F1xx/stm32_rcc.h @@ -203,7 +203,7 @@ /** @} */ /** - * @brief Bakup domain interface specific RCC operations + * @brief Backup domain interface specific RCC operations * @{ */ /** @@ -214,7 +214,7 @@ * * @api */ -#define rccEnableBKP(lp) \ +#define rccEnableBKPInterface(lp) \ rccEnableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp); /** @@ -225,15 +225,22 @@ * * @api */ -#define rccDisableBKP(lp) \ +#define rccDisableBKPInterface(lp) \ rccDisableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp); /** - * @brief Resets the Backup Domain. + * @brief Resets the Backup Domain interface. * * @api */ -#define rccResetBKP(lp) rccResetAPB1(RCC_APB1ENR_BKPRST); +#define rccResetBKPInterface() rccResetAPB1(RCC_APB1ENR_BKPRST); + +/** + * @brief Resets the entire Backup Domain. + * + * @api + */ +#define rccResetBKP() (RCC->BDCR |= RCC_BDCR_BDRST); /** @} */ /** -- cgit v1.2.3