From 53e3cbbfc76346ad7f22fed79bad6ca85273ce38 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 14 Nov 2012 19:26:13 +0000 Subject: [PATCH] Qencoder fixes from Ryan Sundberg git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5354 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 3 +++ arch/arm/src/stm32/stm32_qencoder.c | 1 + configs/stm3240g-eval/src/Makefile | 4 ++++ tools/mkromfsimg.sh | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ce2db55b5f..5fa67d3fe7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3622,4 +3622,7 @@ Makefile.unix. * Makefile: This is a new top-level Makefile that just includes either Makefile.unix or Makefile.win + * configs/stm3240g-eval/src: Qencoder fixes from Ryan Sundberg. + * arch/arm/src/stm32/stm32_qencoder.c: TIM3 bug fix from Ryan Sundberg. + * tools/mkromfsimg.sh: Correct typo in an error message (Ryan Sundberg) diff --git a/arch/arm/src/stm32/stm32_qencoder.c b/arch/arm/src/stm32/stm32_qencoder.c index 8553296f93..d37614c03c 100644 --- a/arch/arm/src/stm32/stm32_qencoder.c +++ b/arch/arm/src/stm32/stm32_qencoder.c @@ -607,6 +607,7 @@ static FAR struct stm32_lowerhalf_s *stm32_tim2lower(int tim) #endif #ifdef CONFIG_STM32_TIM3_QE case 3: + return &g_tim3lower; #endif #ifdef CONFIG_STM32_TIM4_QE case 4: diff --git a/configs/stm3240g-eval/src/Makefile b/configs/stm3240g-eval/src/Makefile index 7174fb1bc9..40c3b8769b 100644 --- a/configs/stm3240g-eval/src/Makefile +++ b/configs/stm3240g-eval/src/Makefile @@ -92,6 +92,10 @@ ifeq ($(CONFIG_INPUT_STMPE811),y) CSRCS += up_stmpe811.c endif +ifeq ($(CONFIG_QENCODER),y) +CSRCS += up_qencoder.c +endif + COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) diff --git a/tools/mkromfsimg.sh b/tools/mkromfsimg.sh index b774119800..8811f19536 100755 --- a/tools/mkromfsimg.sh +++ b/tools/mkromfsimg.sh @@ -233,7 +233,7 @@ mkdir -p $workingdir || { echo "Failed to created the new $workingdir"; exit 1; # Create the rcS file from the rcS.template if [ ! -r $rcstemplate ]; then - echo "$rcstemplete does not exist" + echo "$rcstemplate does not exist" rmdir $workingdir exit 1 fi