From 5f00d22a0439b4bf958d67bafda0878acaf17cb3 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: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4425 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/arch/arm/src/stm32/stm32_qencoder.h | 27 +++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/nuttx/arch/arm/src/stm32/stm32_qencoder.h b/nuttx/arch/arm/src/stm32/stm32_qencoder.h index fc1a1dcbf2..5effa7163d 100644 --- a/nuttx/arch/arm/src/stm32/stm32_qencoder.h +++ b/nuttx/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 /************************************************************************************