aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F1xx
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-19 13:54:07 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-19 13:54:07 +0000
commit31a099cb104ea4d7d957bb65bbdc7e8edbdbe636 (patch)
tree9edf54905eef48fcd3d18ee4c18566866c947265 /os/hal/platforms/STM32F1xx
parent9ced1d4e653d7721b256fbde40f9260446ea434b (diff)
downloadChibiOS-31a099cb104ea4d7d957bb65bbdc7e8edbdbe636.tar.gz
ChibiOS-31a099cb104ea4d7d957bb65bbdc7e8edbdbe636.tar.bz2
ChibiOS-31a099cb104ea4d7d957bb65bbdc7e8edbdbe636.zip
RTC. Driver improvements
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3352 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx')
-rw-r--r--os/hal/platforms/STM32F1xx/stm32_rcc.h17
1 files changed, 12 insertions, 5 deletions
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);
/** @} */
/**