diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-05 08:00:56 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-05 08:00:56 +0000 |
commit | 88a09ec74105c34e3eb66eb5ba84f0e448ce7a2a (patch) | |
tree | fe8ade2bad038927e12d26ee9e39222dc974fa27 /os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | |
parent | adb00b4f8f7d34b0fa026bc8fc083e3464d6c32a (diff) | |
download | ChibiOS-88a09ec74105c34e3eb66eb5ba84f0e448ce7a2a.tar.gz ChibiOS-88a09ec74105c34e3eb66eb5ba84f0e448ce7a2a.tar.bz2 ChibiOS-88a09ec74105c34e3eb66eb5ba84f0e448ce7a2a.zip |
Added FSMC NAND driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7123 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F4xx/stm32_rcc.h')
-rw-r--r-- | os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h index 5d66fffa5..fa9fe14bd 100644 --- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h @@ -1382,6 +1382,35 @@ * @api
*/
#define rccResetLTDC() rccResetAPB2(RCC_APB2RSTR_LTDCRST)
+
+/**
+ * @name FSMC peripherals specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the FSMS peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableFSMC(lp) rccEnableAHB3(RCC_AHB3ENR_FSMCEN, lp)
+
+/**
+ * @brief Disables the FSMC peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableFSMC(lp) rccDisableAHB3(RCC_AHB3ENR_FSMCEN, lp)
+
+/**
+ * @brief Resets the FSMC peripheral.
+ *
+ * @api
+ */
+#define rccResetFSMC() rccResetAHB3(RCC_AHB3RSTR_FSMCRST)
/** @} */
/*===========================================================================*/
|