diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-07 07:03:24 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-07 07:03:24 +0000 |
commit | 7c53fca6c6d873f3d4490a25b3945b7ebb07f4d2 (patch) | |
tree | f1b798d20957067055900f698ca2d0fc59a0e532 /os | |
parent | 0c7c7d2637e8971cac39a8810297978eeef66ff0 (diff) | |
download | ChibiOS-7c53fca6c6d873f3d4490a25b3945b7ebb07f4d2.tar.gz ChibiOS-7c53fca6c6d873f3d4490a25b3945b7ebb07f4d2.tar.bz2 ChibiOS-7c53fca6c6d873f3d4490a25b3945b7ebb07f4d2.zip |
Added FSMC RCC declarations for F1 and F3.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9439 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/STM32F1xx/stm32_rcc.h | 23 | ||||
-rw-r--r-- | os/hal/ports/STM32/STM32F3xx/stm32_rcc.h | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F1xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F1xx/stm32_rcc.h index 5381424ca..b14261d3a 100644 --- a/os/hal/ports/STM32/STM32F1xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F1xx/stm32_rcc.h @@ -1050,6 +1050,29 @@ #define rccResetUSB() rccResetAPB1(RCC_APB1RSTR_USBRST)
/** @} */
+/**
+ * @name FSMC peripherals specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the FSMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableFSMC(lp) rccEnableAHB(RCC_AHBENR_FSMCEN, lp)
+
+/**
+ * @brief Disables the FSMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableFSMC(lp) rccDisableAHB(RCC_AHBENR_FSMCEN, lp)
+/** @} */
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h index 7f5a172a2..9b92679e0 100644 --- a/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F3xx/stm32_rcc.h @@ -898,6 +898,29 @@ #define rccResetUSB() rccResetAPB1(RCC_APB1RSTR_USBRST)
/** @} */
+/**
+ * @name FSMC peripherals specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the FMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableFSMC(lp) rccEnableAHB(RCC_AHBENR_FMCEN, lp)
+
+/**
+ * @brief Disables the FMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableFSMC(lp) rccDisableAHB(RCC_AHBENR_FMCEN, lp)
+/** @} */
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
|