diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-04 23:46:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-04 23:46:00 +0000 |
commit | d7fadacd141270fc041f9cae09eb40fbd8ee7bce (patch) | |
tree | eae6107c5799c69123732da826c2f156428ed477 /nuttx/configs/stm3240g-eval/nsh/defconfig | |
parent | 76faecb6a81930102a78a1c1157b47bc4c177ed5 (diff) | |
download | px4-nuttx-d7fadacd141270fc041f9cae09eb40fbd8ee7bce.tar.gz px4-nuttx-d7fadacd141270fc041f9cae09eb40fbd8ee7bce.tar.bz2 px4-nuttx-d7fadacd141270fc041f9cae09eb40fbd8ee7bce.zip |
Clarify some aspects of ADC configuration for the STM32
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4262 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/nsh/defconfig')
-rwxr-xr-x | nuttx/configs/stm3240g-eval/nsh/defconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/configs/stm3240g-eval/nsh/defconfig b/nuttx/configs/stm3240g-eval/nsh/defconfig index d85894ac4..be648022d 100755 --- a/nuttx/configs/stm3240g-eval/nsh/defconfig +++ b/nuttx/configs/stm3240g-eval/nsh/defconfig @@ -328,9 +328,22 @@ CONFIG_STM32_ETHMAC_REGDEBUG=n # # Enable ADC driver support. The STM3240G-EVAL has a 10 Kohm potentiometer # RV1 connected to PF9 of STM32F407IGH6 on the board: TIM14_CH1/ SMC_CD/ADC3_IN7 +# In order to use the ADC, you must make the following selections: +# +# Above: +# CONFIG_STM32_ADC3=y : Enable ADC3 +# CONFIG_STM32_TIM1=y : Enable Timer 1 +# +# Below: +# CONFIG_ADC=y : Enable the generic ADC infrastructure +# CONFIG_STM32_TIM1_ADC=y : Indicate that timer 1 will be used to trigger an ADC +# CONFIG_STM32_TIM1_ADC3=y : Assign timer 1 to drive ADC3 sampling +# CONFIG_STM32_ADC3_SAMPLE_FREQUENCY=100 : Select a sampling frequency # CONFIG_ADC=n +#CONFIG_STM32_TIM1_ADC=y CONFIG_STM32_TIM1_ADC3=y +CONFIG_STM32_ADC3_SAMPLE_FREQUENCY=100 # # PWM configuration |