diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-05 11:19:22 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-05 11:19:22 +0000 |
commit | d501fe85d1816bd8fc20cd8354f7b339df9ecc27 (patch) | |
tree | fdfc73d6bfec1a17ca0bf6e67b7cecbbeab0b2db /os/hal/platforms/STM32F3xx/stm32_rcc.h | |
parent | f16865c2354bdfd78b712de2e4dac2882600bf35 (diff) | |
download | ChibiOS-d501fe85d1816bd8fc20cd8354f7b339df9ecc27.tar.gz ChibiOS-d501fe85d1816bd8fc20cd8354f7b339df9ecc27.tar.bz2 ChibiOS-d501fe85d1816bd8fc20cd8354f7b339df9ecc27.zip |
STM32F3xx DMA and SPI support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4874 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F3xx/stm32_rcc.h')
-rw-r--r-- | os/hal/platforms/STM32F3xx/stm32_rcc.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F3xx/stm32_rcc.h b/os/hal/platforms/STM32F3xx/stm32_rcc.h index 333b13193..460d1c351 100644 --- a/os/hal/platforms/STM32F3xx/stm32_rcc.h +++ b/os/hal/platforms/STM32F3xx/stm32_rcc.h @@ -222,6 +222,31 @@ * @api
*/
#define rccResetDMA1() rccResetAHB(RCC_AHBRSTR_DMA1RST)
+
+/**
+ * @brief Enables the DMA2 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableDMA2(lp) rccEnableAHB(RCC_AHBENR_DMA2EN, lp)
+
+/**
+ * @brief Disables the DMA2 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableDMA2(lp) rccDisableAHB(RCC_AHBENR_DMA2EN, lp)
+
+/**
+ * @brief Resets the DMA2 peripheral.
+ *
+ * @api
+ */
+#define rccResetDMA2() rccResetAHB(RCC_AHBRSTR_DMA2RST)
/** @} */
/**
|