summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/stm3240g-eval/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-01-03 23:25:49 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-01-03 23:25:49 +0000
commitca1b3de7a6894d4900ed8f9447e0d164f0ab8766 (patch)
treeef4e43b32b283e3844cdc3490183282e21a93f03 /nuttx/configs/stm3240g-eval/src
parent38850d7d1e9db459b008d63dbb94211014cbba09 (diff)
Fixes for STM32 ADC driver on the F4; LC17xx LED initial state
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4257 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/stm3240g-eval/src')
-rw-r--r--nuttx/configs/stm3240g-eval/src/up_adc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/configs/stm3240g-eval/src/up_adc.c b/nuttx/configs/stm3240g-eval/src/up_adc.c
index d376e40362..e42651761b 100644
--- a/nuttx/configs/stm3240g-eval/src/up_adc.c
+++ b/nuttx/configs/stm3240g-eval/src/up_adc.c
@@ -40,6 +40,7 @@
#include <nuttx/config.h>
+#include <errno.h>
#include <debug.h>
#include <nuttx/analog/adc.h>
@@ -136,7 +137,7 @@ int adc_devinit(void)
/* Call stm32_adcinitialize() to get an instance of the ADC interface */
- adc = stm32_adcinitialize(1, g_chanlist, ADC3_NCHANNELS);
+ adc = stm32_adcinitialize(3, g_chanlist, ADC3_NCHANNELS);
if (adc == NULL)
{
adbg("ERROR: Failed to get ADC interface\n");