summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-04 23:46:00 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-04 23:46:00 +0000
commitd7fadacd141270fc041f9cae09eb40fbd8ee7bce (patch)
treeeae6107c5799c69123732da826c2f156428ed477 /nuttx/configs/stm3210e-eval/README.txt
parent76faecb6a81930102a78a1c1157b47bc4c177ed5 (diff)
downloadnuttx-d7fadacd141270fc041f9cae09eb40fbd8ee7bce.tar.gz
nuttx-d7fadacd141270fc041f9cae09eb40fbd8ee7bce.tar.bz2
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/stm3210e-eval/README.txt')
-rwxr-xr-xnuttx/configs/stm3210e-eval/README.txt35
1 files changed, 9 insertions, 26 deletions
diff --git a/nuttx/configs/stm3210e-eval/README.txt b/nuttx/configs/stm3210e-eval/README.txt
index bdd06b0d1..607f4ef35 100755
--- a/nuttx/configs/stm3210e-eval/README.txt
+++ b/nuttx/configs/stm3210e-eval/README.txt
@@ -485,32 +485,15 @@ STM3210E-EVAL-specific Configuration Options
to generate modulated outputs for such things as motor control. If CONFIG_STM32_TIMn
is defined (as above) then the following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation, ADC conversion,
- or DAC conversion.
-
- CONFIG_STM32_TIM1_PWM
- CONFIG_STM32_TIM2_PWM
- CONFIG_STM32_TIM3_PWM
- CONFIG_STM32_TIM4_PWM
- CONFIG_STM32_TIM5_PWM
- CONFIG_STM32_TIM8_PWM
-
- CONFIG_STM32_TIM1_ADC
- CONFIG_STM32_TIM2_ADC
- CONFIG_STM32_TIM3_ADC
- CONFIG_STM32_TIM4_ADC
- CONFIG_STM32_TIM5_ADC
- CONFIG_STM32_TIM6_ADC
- CONFIG_STM32_TIM7_ADC
- CONFIG_STM32_TIM8_ADC
-
- CONFIG_STM32_TIM1_DAC
- CONFIG_STM32_TIM2_DAC
- CONFIG_STM32_TIM3_DAC
- CONFIG_STM32_TIM4_DAC
- CONFIG_STM32_TIM5_DAC
- CONFIG_STM32_TIM6_DAC
- CONFIG_STM32_TIM7_DAC
- CONFIG_STM32_TIM8_DAC
+ or DAC conversion. Note that ADC/DAC require two definition: Not only do you have
+ to assign the timer (n) for used by the ADC or DAC, but then you also have to
+ configure which ADC or DAC (m) it is assigned to.
+
+ CONFIG_STM32_TIMn_PWM Reserve timer n for use by PWM, n=1,..,8
+ CONFIG_STM32_TIMn_ADC Reserve timer n for use by ADC, n=1,..,8
+ CONFIG_STM32_TIMn_ADCm Reserve timer n to trigger ADCm, n=1,..,8, m=1,..,3
+ CONFIG_STM32_TIMn_DAC Reserve timer n for use by DAC, n=1,..,8
+ CONFIG_STM32_TIMn_DACm Reserve timer n to trigger DACm, n=1,..,8, m=1,..,2
For each timer that is enabled for PWM usage, we need the following additional
configuration settings: