aboutsummaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_qencoder.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-05-25 13:27:21 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-05-25 13:27:21 +0000
commite7f5bd322fe485053559d976eccb00fe65077782 (patch)
treec2cba4e1ffe3a8a2d8bccfe6a7a1dc76faf6270b /nuttx/arch/arm/src/stm32/stm32_qencoder.c
parente85679637156f3b10ae716c201228d13151e1e47 (diff)
downloadpx4-firmware-e7f5bd322fe485053559d976eccb00fe65077782.tar.gz
px4-firmware-e7f5bd322fe485053559d976eccb00fe65077782.tar.bz2
px4-firmware-e7f5bd322fe485053559d976eccb00fe65077782.zip
Fix conditional compilation in STM32 quadrature encoder
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4770 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_qencoder.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_qencoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_qencoder.c b/nuttx/arch/arm/src/stm32/stm32_qencoder.c
index 1471f4bd7..237782c15 100644
--- a/nuttx/arch/arm/src/stm32/stm32_qencoder.c
+++ b/nuttx/arch/arm/src/stm32/stm32_qencoder.c
@@ -185,7 +185,7 @@ struct stm32_qeconfig_s
#ifdef HAVE_MIXEDWIDTH_TIMERS
uint8_t width; /* Timer width (16- or 32-bits) */
#endif
-#elif defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
+#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
uint32_t ti1cfg; /* TI1 input pin configuration (20-bit encoding) */
uint32_t ti2cfg; /* TI2 input pin configuration (20-bit encoding) */
#else