aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-09-16 16:24:14 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-09-16 16:24:14 +0000
commit18e72e023de58ad2ca5757157eab5fa93ca0977a (patch)
treea6e0a5433cc84f1a107966e1cfa55a55d95edf9c /tools
parent9bfcb80e61e0f9fe5c4ff88b9ceca02f8ed6fc03 (diff)
downloadChibiOS-18e72e023de58ad2ca5757157eab5fa93ca0977a.tar.gz
ChibiOS-18e72e023de58ad2ca5757157eab5fa93ca0977a.tar.bz2
ChibiOS-18e72e023de58ad2ca5757157eab5fa93ca0977a.zip
Adapted ADCv3 to STM32L4+.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12267 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'tools')
-rw-r--r--tools/ftl/processors/conf/mcuconf_stm32l4r5xx/mcuconf.h.ftl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ftl/processors/conf/mcuconf_stm32l4r5xx/mcuconf.h.ftl b/tools/ftl/processors/conf/mcuconf_stm32l4r5xx/mcuconf.h.ftl
index 552698c48..690e52772 100644
--- a/tools/ftl/processors/conf/mcuconf_stm32l4r5xx/mcuconf.h.ftl
+++ b/tools/ftl/processors/conf/mcuconf_stm32l4r5xx/mcuconf.h.ftl
@@ -135,6 +135,12 @@
/*
* ADC driver system settings.
*/
+#define STM32_ADC_COMPACT_SAMPLES ${doc.STM32_ADC_COMPACT_SAMPLES!"FALSE"}
+#define STM32_ADC_USE_ADC1 ${doc.STM32_ADC_USE_ADC1!"FALSE"}
+#define STM32_ADC_ADC1_DMA_CHANNEL ${doc.STM32_ADC_ADC1_DMA_CHANNEL!"10"}
+#define STM32_ADC_ADC1_DMA_PRIORITY ${doc.STM32_ADC_ADC1_DMA_PRIORITY!"2"}
+#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY ${doc.STM32_ADC_ADC1_DMA_IRQ_PRIORITY!"5"}
+#define STM32_ADC_ADC123_CLOCK_MODE ${doc.STM32_ADC_ADC123_CLOCK_MODE!"ADC_CCR_CKMODE_AHB_DIV2"}
/*
* CAN driver system settings.