From d91b5c43d17fddb8abc7920e1e5fcd92d0c89013 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 25 Feb 2012 00:58:07 +0000 Subject: [PATCH] Ooops part of last checkin was still in the editor git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4425 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_qencoder.h | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/stm32/stm32_qencoder.h b/arch/arm/src/stm32/stm32_qencoder.h index fc1a1dcbf26..5effa7163d7 100644 --- a/arch/arm/src/stm32/stm32_qencoder.h +++ b/arch/arm/src/stm32/stm32_qencoder.h @@ -88,12 +88,31 @@ #undef CONFIG_STM32_TIM14_QE /* Clock out frequency. This value is used to calculation the timer CLKIN in - * prescaler value. At present, this is a single global value for all timers. - * it really should be customize-able for each timer. + * prescaler value. */ -#ifndef CONFIG_STM32_TIM_QECLKOUT -# define CONFIG_STM32_TIM_QECLKOUT 28000000 +#ifndef CONFIG_STM32_TIM1_QECLKOUT +# define CONFIG_STM32_TIM1_QECLKOUT 28000000 +#endif + +#ifndef CONFIG_STM32_TIM2_QECLKOUT +# define CONFIG_STM32_TIM2_QECLKOUT 28000000 +#endif + +#ifndef CONFIG_STM32_TIM3_QECLKOUT +# define CONFIG_STM32_TIM3_QECLKOUT 28000000 +#endif + +#ifndef CONFIG_STM32_TIM4_QECLKOUT +# define CONFIG_STM32_TIM4_QECLKOUT 28000000 +#endif + +#ifndef CONFIG_STM32_TIM5_QECLKOUT +# define CONFIG_STM32_TIM5_QECLKOUT 28000000 +#endif + +#ifndef CONFIG_STM32_TIM8_QECLKOUT +# define CONFIG_STM32_TIM8_QECLKOUT 28000000 #endif /************************************************************************************