aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-05-07 06:45:04 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-05-07 06:45:04 +0000
commit0c7c7d2637e8971cac39a8810297978eeef66ff0 (patch)
tree957a0ba19ed7fcc8776cb5d262042e5b5d5fe3fb /os
parentb98b84efefd5330dfacb6bb18632213c9bf0ab11 (diff)
downloadChibiOS-0c7c7d2637e8971cac39a8810297978eeef66ff0.tar.gz
ChibiOS-0c7c7d2637e8971cac39a8810297978eeef66ff0.tar.bz2
ChibiOS-0c7c7d2637e8971cac39a8810297978eeef66ff0.zip
Fixed bug #739.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9438 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/STM32F4xx/stm32_registry.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
index ecff41099..eb9ce86a5 100644
--- a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
@@ -800,8 +800,14 @@
#define STM32_CAN_MAX_FILTERS 28
/* DAC attributes.*/
-#define STM32_HAS_DAC1_CH1 FALSE
-#define STM32_HAS_DAC1_CH2 FALSE
+#define STM32_HAS_DAC1_CH1 TRUE
+#define STM32_DAC1_CH1_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 5))
+#define STM32_DAC1_CH1_DMA_CHN 0x00700000
+
+#define STM32_HAS_DAC1_CH2 TRUE
+#define STM32_DAC1_CH2_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 6))
+#define STM32_DAC1_CH2_DMA_CHN 0x07000000
+
#define STM32_HAS_DAC2_CH1 FALSE
#define STM32_HAS_DAC2_CH2 FALSE