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/hal/ports/STM32/STM32F3xx | |
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/hal/ports/STM32/STM32F3xx')
-rw-r--r-- | os/hal/ports/STM32/STM32F3xx/stm32_rcc.h | 23 |
1 files changed, 23 insertions, 0 deletions
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. */
/*===========================================================================*/
|