Add basic support for pulse count in the PWM interface

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4285 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-01-09 18:23:30 +00:00
parent 56a69c9fad
commit dada7a5200
2 changed files with 3 additions and 0 deletions

View File

@ -595,7 +595,9 @@ Where <subdir> is one of the following:
be manually enabled by selecting: be manually enabled by selecting:
CONFIG_PWM=y : Enable the generic PWM infrastructure CONFIG_PWM=y : Enable the generic PWM infrastructure
CONFIG_PWM_PULSECOUNT=n : Disable to support TIM1/8 pulse counts
CONFIG_STM32_TIM4_PWM=y : Use TIM4 to generate PWM output CONFIG_STM32_TIM4_PWM=y : Use TIM4 to generate PWM output
CONFIG_STM32_TIM4_CHANNEL=2
See also apps/examples/README.txt See also apps/examples/README.txt

View File

@ -353,6 +353,7 @@ CONFIG_STM32_ADC3_SAMPLE_FREQUENCY=100
# purpose. # purpose.
# #
CONFIG_PWM=n CONFIG_PWM=n
CONFIG_PWM_PULSECOUNT=n
CONFIG_STM32_TIM4=y CONFIG_STM32_TIM4=y
CONFIG_STM32_TIM4_PWM=y CONFIG_STM32_TIM4_PWM=y
CONFIG_STM32_TIM4_CHANNEL=2 CONFIG_STM32_TIM4_CHANNEL=2