aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-08-07 08:57:36 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-08-07 08:57:36 +0000
commit4e935e11dd3d8adaf01db8c5a1a0e242343bd496 (patch)
tree19d714409c7c1e39e00887768a52dcb4c980e39d /os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
parenta9b125afb497c76ede307a1ae1ba011d08245f3c (diff)
downloadChibiOS-4e935e11dd3d8adaf01db8c5a1a0e242343bd496.tar.gz
ChibiOS-4e935e11dd3d8adaf01db8c5a1a0e242343bd496.tar.bz2
ChibiOS-4e935e11dd3d8adaf01db8c5a1a0e242343bd496.zip
More L1-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8174 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32L1xx/stm32_rcc.h')
-rw-r--r--os/hal/ports/STM32/STM32L1xx/stm32_rcc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h b/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
index e64ff3929..883712ea2 100644
--- a/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
@@ -260,6 +260,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)
/** @} */
/**