summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_qencoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_qencoder.h')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_qencoder.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_qencoder.h b/nuttx/arch/arm/src/stm32/stm32_qencoder.h
index e9e71a956..fc1a1dcbf 100644
--- a/nuttx/arch/arm/src/stm32/stm32_qencoder.h
+++ b/nuttx/arch/arm/src/stm32/stm32_qencoder.h
@@ -87,6 +87,15 @@
#undef CONFIG_STM32_TIM13_QE
#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.
+ */
+
+#ifndef CONFIG_STM32_TIM_QECLKOUT
+# define CONFIG_STM32_TIM_QECLKOUT 28000000
+#endif
+
/************************************************************************************
* Included Files
************************************************************************************/