diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-06-26 08:15:18 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-06-26 08:15:18 +0000 |
commit | 90527794f02f544505e34b89687401aeaa964e35 (patch) | |
tree | c3f4ab4edff188e69475e8622c71f15046108060 /os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | |
parent | c79855891422c7f11bb24a662667d5404c94fba6 (diff) | |
download | ChibiOS-90527794f02f544505e34b89687401aeaa964e35.tar.gz ChibiOS-90527794f02f544505e34b89687401aeaa964e35.tar.bz2 ChibiOS-90527794f02f544505e34b89687401aeaa964e35.zip |
Merged LTDC DMA2D code in STM32F4xx HAL.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8052 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 | 30 |
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 393fa5994..b86c85d58 100644 --- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h @@ -1468,6 +1468,36 @@ #define rccResetLTDC() rccResetAPB2(RCC_APB2RSTR_LTDCRST)
/**
+ * @name DMA2D peripheral specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the DMA2D peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableDMA2D(lp) rccEnableAHB1(RCC_AHB1ENR_DMA2DEN, lp)
+
+/**
+ * @brief Disables the DMA2D peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableDMA2D(lp) rccDisableAHB1(RCC_AHB1ENR_DMA2DEN, lp)
+
+/**
+ * @brief Resets the DMA2D peripheral.
+ *
+ * @api
+ */
+#define rccResetDMA2D() rccResetAHB1(RCC_AHB1RSTR_DMA2DRST)
+/** @} */
+
+/**
* @name FSMC peripherals specific RCC operations
* @{
*/
|