diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-10-03 09:49:25 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-10-03 09:49:25 +0000 |
commit | 35c88286dff9473991103b9eff5aa69d2120d515 (patch) | |
tree | ebc8ec9fab9c986036cc430c49fbc79187dedb41 /os | |
parent | 98cf4e16e8d9f6a2ed107ad1bb5a06b8f61fbf41 (diff) | |
download | ChibiOS-35c88286dff9473991103b9eff5aa69d2120d515.tar.gz ChibiOS-35c88286dff9473991103b9eff5aa69d2120d515.tar.bz2 ChibiOS-35c88286dff9473991103b9eff5aa69d2120d515.zip |
STM32F7 QUADSPI fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9838 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/STM32F7xx/stm32_rcc.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h index 8189c1813..76aa1ee60 100644 --- a/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F7xx/stm32_rcc.h @@ -738,6 +738,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 SDMMC peripheral specific RCC operations
* @{
*/
|