aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L0xx/EXT/mcuconf.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-07-26 12:51:34 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-07-26 12:51:34 +0000
commit0e263707af129726b6f9f1056523e1f16f350078 (patch)
tree724f3ba5c9c07284c3b7c7574e87fa23c91ff6e3 /testhal/STM32/STM32L0xx/EXT/mcuconf.h
parentb33676f51e20e656778a5d6100580950b771fd2e (diff)
downloadChibiOS-0e263707af129726b6f9f1056523e1f16f350078.tar.gz
ChibiOS-0e263707af129726b6f9f1056523e1f16f350078.tar.bz2
ChibiOS-0e263707af129726b6f9f1056523e1f16f350078.zip
STM32L0xx ADC demo.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8106 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32L0xx/EXT/mcuconf.h')
-rw-r--r--testhal/STM32/STM32L0xx/EXT/mcuconf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/testhal/STM32/STM32L0xx/EXT/mcuconf.h b/testhal/STM32/STM32L0xx/EXT/mcuconf.h
index 27bafa36d..2f620f6e6 100644
--- a/testhal/STM32/STM32L0xx/EXT/mcuconf.h
+++ b/testhal/STM32/STM32L0xx/EXT/mcuconf.h
@@ -68,11 +68,13 @@
/*
* ADC driver system settings.
*/
-#define STM32_ADC_USE_ADC1 FALSE
+#define STM32_ADC_USE_ADC1 TRUE
+#define STM32_ADC_ADC1_CKMODE STM32_ADC_CKMODE_ADCCLK
#define STM32_ADC_ADC1_DMA_PRIORITY 2
-#define STM32_ADC_IRQ_PRIORITY 2
+#define STM32_ADC_ADC1_IRQ_PRIORITY 2
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(1, 1)
+#define STM32_ADC_PRESCALER_VALUE 1
/*
* EXT driver system settings.