Update STM32 configuration to use TIM8 instead of TIM2
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4423 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
b0b0a45a6e
commit
643447b906
@ -358,8 +358,10 @@ Quadrature Encode Timer Inputs
|
|||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
If enabled (by setting CONFIG_QENCODER=y), then quadrature encoder will
|
If enabled (by setting CONFIG_QENCODER=y), then quadrature encoder will
|
||||||
user TIM2 (see nsh/defconfig) and input pins PA15, and PA1 for CH1 and
|
use either TIM2 or TIM8 (see nsh/defconfig). If TIM2 is selected, the input
|
||||||
CH2, respectively (see include board.h).
|
pins PA15 and PA1 for CH1 and CH2, respectively). If TIM8 is selected, then
|
||||||
|
PC6 and PI5 will be used for CH1 and CH2 (see include board.h for pin
|
||||||
|
definitions).
|
||||||
|
|
||||||
FPU
|
FPU
|
||||||
===
|
===
|
||||||
|
@ -327,11 +327,12 @@ CONFIG_STM32_TIM4_CHANNEL=2
|
|||||||
#
|
#
|
||||||
# Quadrature Encoder configuration.
|
# Quadrature Encoder configuration.
|
||||||
#
|
#
|
||||||
# Uses TIM2 (CONFIG_STM32_TIM2=y above)
|
# Uses TIM2 or TIM8. TIM2 also needs CONFIG_STM32_TIM2=y; TIM8 needs CONFIG_STM_TIM8 above.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
CONFIG_QENCODER=n
|
CONFIG_QENCODER=n
|
||||||
CONFIG_STM32_TIM2_QE=y
|
CONFIG_STM32_TIM2_QE=n
|
||||||
|
CONFIG_STM32_TIM8_QE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user