summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_qencoder.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-25 13:27:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-25 13:27:21 +0000
commit385b0fd6504ea1cb35b52cb425b5c37a62afa91d (patch)
treec2cba4e1ffe3a8a2d8bccfe6a7a1dc76faf6270b /nuttx/arch/arm/src/stm32/stm32_qencoder.c
parent68f81e1dfef545a718da2932d61aa207ea4588b2 (diff)
downloadpx4-nuttx-385b0fd6504ea1cb35b52cb425b5c37a62afa91d.tar.gz
px4-nuttx-385b0fd6504ea1cb35b52cb425b5c37a62afa91d.tar.bz2
px4-nuttx-385b0fd6504ea1cb35b52cb425b5c37a62afa91d.zip
Fix conditional compilation in STM32 quadrature encoder
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4770 42af7a65-404d-4744-a932-0658087f49c3
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