aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L1xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-05-13 12:48:51 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-05-13 12:48:51 +0000
commitc0690a36e130236939ed7e339601a62c53ee04a0 (patch)
treea5741c8fd9bc627dfa5bcae5e107a80eba4b9a39 /os/hal/ports/STM32/STM32L1xx
parent6da1914915c86d81b81d62a4925d66525d462bc1 (diff)
downloadChibiOS-c0690a36e130236939ed7e339601a62c53ee04a0.tar.gz
ChibiOS-c0690a36e130236939ed7e339601a62c53ee04a0.tar.bz2
ChibiOS-c0690a36e130236939ed7e339601a62c53ee04a0.zip
RCC DAC macros
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7978 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32L1xx')
-rw-r--r--os/hal/ports/STM32/STM32L1xx/stm32_rcc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h b/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
index 856b7857d..e64ff3929 100644
--- a/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
+++ b/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h
@@ -203,6 +203,36 @@
/** @} */
/**
+ * @name DAC peripheral specific RCC operations
+ * @{
+ */
+/**
+ * @brief Enables the DAC1 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccEnableDAC1(lp) rccEnableAPB1(RCC_APB1ENR_DACEN, lp)
+
+/**
+ * @brief Disables the DAC1 peripheral clock.
+ *
+ * @param[in] lp low power enable flag
+ *
+ * @api
+ */
+#define rccDisableDAC1(lp) rccDisableAPB1(RCC_APB1ENR_DACEN, lp)
+
+/**
+ * @brief Resets the DAC1 peripheral.
+ *
+ * @api
+ */
+#define rccResetDAC1() rccResetAPB1(RCC_APB1RSTR_DACRST)
+/** @} */
+
+/**
* @name DMA peripheral specific RCC operations
* @{
*/