aboutsummaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_qencoder.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-25 00:19:13 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-25 00:19:13 +0000
commit9daa6ed1d1d245536198b6b3e6446a5812e80bf5 (patch)
treecced45cb9ff788c7f8c05577764856ac8ec8d071 /nuttx/arch/arm/src/stm32/stm32_qencoder.h
parentbdd5e8adcb807dc15486862721778f65e78982a8 (diff)
downloadpx4-firmware-9daa6ed1d1d245536198b6b3e6446a5812e80bf5.tar.gz
px4-firmware-9daa6ed1d1d245536198b6b3e6446a5812e80bf5.tar.bz2
px4-firmware-9daa6ed1d1d245536198b6b3e6446a5812e80bf5.zip
Fixes for the STM32 quadrature encoder
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4422 7fd9a85b-ad96-42d3-883c-3090e2eb8679
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
************************************************************************************/