diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-10-22 13:26:05 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-10-22 13:26:05 +0000 |
commit | c5ca297584502252e592342fb7a7eb95c3072548 (patch) | |
tree | cd3ef8fe9b72acbbf36ad851f8cd2533e9e1b044 /os/hal/ports/STM32/STM32F0xx | |
parent | e8cd09482172ce6ef2bc4e56f6258f3747ad06cc (diff) | |
download | ChibiOS-c5ca297584502252e592342fb7a7eb95c3072548.tar.gz ChibiOS-c5ca297584502252e592342fb7a7eb95c3072548.tar.bz2 ChibiOS-c5ca297584502252e592342fb7a7eb95c3072548.zip |
DMA-related adjustments.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8379 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F0xx')
-rw-r--r-- | os/hal/ports/STM32/STM32F0xx/stm32_rcc.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F0xx/stm32_rcc.h index 6ecb97f1b..8fc8e933e 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_rcc.h @@ -323,6 +323,34 @@ * @api
*/
#define rccResetDMA1()
+
+/**
+ * @brief Enables the DMA2 peripheral clock.
+ * @note The @p lp parameter is ignored in this family.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableDMA2(lp) rccEnableAHB(RCC_AHBENR_DMA2EN, lp)
+
+/**
+ * @brief Disables the DMA2 peripheral clock.
+ * @note The @p lp parameter is ignored in this family.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableDMA2(lp) rccDisableAHB(RCC_AHBENR_DMA2EN, lp)
+
+/**
+ * @brief Resets the DMA2 peripheral.
+ * @note Not supported in this family, does nothing.
+ *
+ * @api
+ */
+#define rccResetDMA2()
/** @} */
/**
|