aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F2xx/stm32_rcc.h
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-04 20:03:49 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-04 20:03:49 +0000
commitc506b8f2b1bf2446442040cd3f00f8750754d5aa (patch)
tree97832a449711617e087d759b9d84bdf49b6a0d74 /os/hal/platforms/STM32F2xx/stm32_rcc.h
parent205d56e9208c640543733f0b7f7088db21a371eb (diff)
downloadChibiOS-c506b8f2b1bf2446442040cd3f00f8750754d5aa.tar.gz
ChibiOS-c506b8f2b1bf2446442040cd3f00f8750754d5aa.tar.bz2
ChibiOS-c506b8f2b1bf2446442040cd3f00f8750754d5aa.zip
PVD. Checked compilability on F1x, L1x, F4x. Testhal fro F1x
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/pvd2_dev@3732 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F2xx/stm32_rcc.h')
-rw-r--r--os/hal/platforms/STM32F2xx/stm32_rcc.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F2xx/stm32_rcc.h b/os/hal/platforms/STM32F2xx/stm32_rcc.h
index 19ad4484d..39d674bd0 100644
--- a/os/hal/platforms/STM32F2xx/stm32_rcc.h
+++ b/os/hal/platforms/STM32F2xx/stm32_rcc.h
@@ -391,6 +391,38 @@
/** @} */
/**
+ * @brief PWR interface specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the PWR interface clock.
+ * @note The @p lp parameter is ignored in this family.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnablePWRInterface(lp) rccEnableAPB1(RCC_APB1ENR_PWREN, lp)
+
+/**
+ * @brief Disables PWR interface clock.
+ * @note The @p lp parameter is ignored in this family.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisablePWRInterface(lp) rccDisableAPB1(RCC_APB1ENR_BKPEN, lp)
+
+/**
+ * @brief Resets the PWR interface.
+ *
+ * @api
+ */
+#define rccResetPWRInterface() rccResetAPB1(RCC_APB1ENR_BKPRST)
+/** @} */
+
+/**
* @brief I2C peripherals specific RCC operations
* @{
*/