diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-24 15:16:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-24 15:16:39 +0000 |
commit | 9831a1ec8ffdb0d9c4dbe35ecd9b5a69b898bde0 (patch) | |
tree | af7e2e3aa1b906280b55ae24817346ff412d9c8e /testhal/STM32F37x | |
parent | ca3e1fceff045907011d214b13e477b432e04381 (diff) | |
download | ChibiOS-9831a1ec8ffdb0d9c4dbe35ecd9b5a69b898bde0.tar.gz ChibiOS-9831a1ec8ffdb0d9c4dbe35ecd9b5a69b898bde0.tar.bz2 ChibiOS-9831a1ec8ffdb0d9c4dbe35ecd9b5a69b898bde0.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5500 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F37x')
-rw-r--r-- | testhal/STM32F37x/SDADC/Makefile | 2 | ||||
-rw-r--r-- | testhal/STM32F37x/SDADC/main.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32F37x/SDADC/Makefile b/testhal/STM32F37x/SDADC/Makefile index 0090b317a..782a3b3d7 100644 --- a/testhal/STM32F37x/SDADC/Makefile +++ b/testhal/STM32F37x/SDADC/Makefile @@ -5,7 +5,7 @@ # Compiler options here.
ifeq ($(USE_OPT),)
- USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
+ USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C specific options here (added to USE_OPT).
diff --git a/testhal/STM32F37x/SDADC/main.c b/testhal/STM32F37x/SDADC/main.c index 90b722183..4b3e69df4 100644 --- a/testhal/STM32F37x/SDADC/main.c +++ b/testhal/STM32F37x/SDADC/main.c @@ -54,7 +54,7 @@ static void adcerrorcallback(ADCDriver *adcp, adcerror_t err) { /*
* ADC conversion group.
* Mode: Linear buffer, 8 samples of 1 channel, SW triggered.
- * Channels: ADC_IN6P.
+ * Channels: ADC_IN5P.
*/
static const ADCConversionGroup adcgrpcfg1 = {
FALSE,
@@ -63,14 +63,14 @@ static const ADCConversionGroup adcgrpcfg1 = { adcerrorcallback,
.u.sdadc = {
SDADC_CR2_JSWSTART, /* CR2 */
- SDADC_JCHGR_CH(6), /* JCHGR */
+ SDADC_JCHGR_CH(5), /* JCHGR */
{ /* CONFxR[3]*/
SDADC_CONFR_GAIN_1X | SDADC_CONFR_SE_DIFF | SDADC_CONFR_COMMON_VSSSD,
0,
0
},
{ /* CONFCHR[2]*/
- SDADC_CONFCHR1_CH6(0),
+ SDADC_CONFCHR1_CH5(0),
0
}
}
|