diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-22 21:55:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-22 21:55:54 +0000 |
commit | 9e3c18cfd114ffd892ead66460e9bc040904c25d (patch) | |
tree | de611df330178a7c539127b3d7f26e5420094a7b /nuttx/configs/stm3210e-eval | |
parent | a8ab2aef243697e99a0c9eba0b9d9fba98444b27 (diff) | |
download | px4-nuttx-9e3c18cfd114ffd892ead66460e9bc040904c25d.tar.gz px4-nuttx-9e3c18cfd114ffd892ead66460e9bc040904c25d.tar.bz2 px4-nuttx-9e3c18cfd114ffd892ead66460e9bc040904c25d.zip |
Update to the STM32 ADC and CAN drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4215 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval')
-rwxr-xr-x | nuttx/configs/stm3210e-eval/README.txt | 2 | ||||
-rw-r--r-- | nuttx/configs/stm3210e-eval/src/up_adc.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/configs/stm3210e-eval/README.txt b/nuttx/configs/stm3210e-eval/README.txt index 05face7f0..bdd06b0d1 100755 --- a/nuttx/configs/stm3210e-eval/README.txt +++ b/nuttx/configs/stm3210e-eval/README.txt @@ -587,6 +587,8 @@ STM3210E-EVAL-specific Configuration Options mode for testing. The STM32 CAN driver does support loopback mode. CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined. CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined. + CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an + dump of all CAN registers. STM3210E-EVAL LCD Hardware Configuration diff --git a/nuttx/configs/stm3210e-eval/src/up_adc.c b/nuttx/configs/stm3210e-eval/src/up_adc.c index fa05f547b..75ac6610a 100644 --- a/nuttx/configs/stm3210e-eval/src/up_adc.c +++ b/nuttx/configs/stm3210e-eval/src/up_adc.c @@ -76,19 +76,19 @@ /* The number of ADC channels in the conversion list */ -#define ADC_NCHANNELS 2 +#define ADC_NCHANNELS 1 /************************************************************************************ * Private Data ************************************************************************************/ -/* Identifying number of each ADC channel: Variable Resistor and BNC_CN5 */ +/* Identifying number of each ADC channel: Variable Resistor */ -static const uint8_t g_chanlist[ADC_NCHANNELS] = {14, 11}; +static const uint8_t g_chanlist[ADC_NCHANNELS] = {14}; /* Configurations of pins used byte each ADC channels */ -static const uint32_t g_pinlist[ADC_NCHANNELS] = {GPIO_ADC1_IN14 , GPIO_ADC1_IN11}; +static const uint32_t g_pinlist[ADC_NCHANNELS] = {GPIO_ADC1_IN14}; /************************************************************************************ * Private Functions |