aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-03-06 14:26:19 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-03-06 14:26:19 +0000
commit1eabe1e91173d56ccbd85092570b3d0bfb8346e9 (patch)
tree536bde5a1c03105289802a20f22fcc73ae4ffa7c /os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
parent8d1dc1313cf3d1ce8f7793d037c1df0c0591dc8c (diff)
downloadChibiOS-1eabe1e91173d56ccbd85092570b3d0bfb8346e9.tar.gz
ChibiOS-1eabe1e91173d56ccbd85092570b3d0bfb8346e9.tar.bz2
ChibiOS-1eabe1e91173d56ccbd85092570b3d0bfb8346e9.zip
Fixed support for QUADSPI on F4xx.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10120 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.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
index 6f3e269e6..503cf1bae 100644
--- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
@@ -714,6 +714,36 @@
/** @} */
/**
+ * @name QUADSPI peripherals specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the QUADSPI1 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableQUADSPI1(lp) rccEnableAHB3(RCC_AHB3ENR_QSPIEN, lp)
+
+/**
+ * @brief Disables the QUADSPI1 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableQUADSPI1(lp) rccDisableAHB3(RCC_AHB3ENR_QSPIEN, lp)
+
+/**
+ * @brief Resets the QUADSPI1 peripheral.
+ *
+ * @api
+ */
+#define rccResetQUADSPI1() rccResetAHB3(RCC_AHB3RSTR_QSPIRST)
+/** @} */
+
+/**
* @name SDIO peripheral specific RCC operations
* @{
*/