diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-14 10:25:03 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-14 10:25:03 +0000 |
commit | abd680e3e123d040dfa700a5d70183a310e481f0 (patch) | |
tree | 9d6ec96f415241a151eed229aea9456260c41acc /os/hal/ports/STM32/STM32L4xx/stm32_rcc.h | |
parent | 61749d34be627dbc70da3c5b66226356b41288e6 (diff) | |
download | ChibiOS-abd680e3e123d040dfa700a5d70183a310e481f0.tar.gz ChibiOS-abd680e3e123d040dfa700a5d70183a310e481f0.tar.bz2 ChibiOS-abd680e3e123d040dfa700a5d70183a310e481f0.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8891 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32L4xx/stm32_rcc.h')
-rw-r--r-- | os/hal/ports/STM32/STM32L4xx/stm32_rcc.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h index 4982b03df..2607d5793 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_rcc.h @@ -1099,6 +1099,36 @@ #define rccResetLPUART1() rccResetAPB1R2(RCC_APB1RSTR2_LPUART1RST)
/** @} */
+/**
+ * @name FSMC peripherals specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the FSMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableFSMC(lp) rccEnableAHB3(RCC_AHB3ENR_FMCEN, lp)
+
+/**
+ * @brief Disables the FSMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableFSMC(lp) rccDisableAHB3(RCC_AHB3ENR_FMCEN, lp)
+
+/**
+ * @brief Resets the FSMC peripheral.
+ *
+ * @api
+ */
+#define rccResetFSMC() rccResetAHB3(RCC_AHB3RSTR_FMCRST)
+/** @} */
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
|