From 89b080564bf893f89778a7de1b0cc76193918407 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 10 Jul 2012 20:51:39 +0000 Subject: [PATCH] Fix another LPC43xx pin configuration problem git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4926 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lpc43xx/lpc43_pinconfig.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/src/lpc43xx/lpc43_pinconfig.h b/arch/arm/src/lpc43xx/lpc43_pinconfig.h index 29d58d061f..293f838e95 100644 --- a/arch/arm/src/lpc43xx/lpc43_pinconfig.h +++ b/arch/arm/src/lpc43xx/lpc43_pinconfig.h @@ -71,15 +71,15 @@ #define PINCONF_FUNC_SHIFT (16) /* Bits 16-18: Alternate function number */ #define PINCONF_FUNC_MASK (7 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC(n) (0 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC0 (1 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC1 (2 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC2 (3 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC3 (4 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC4 (5 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC5 (6 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC6 (7 << PINCONF_FUNC_SHIFT) -# define PINCONF_FUNC7 (8 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC(n) ((n) << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC0 (0 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC1 (1 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC2 (2 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC3 (3 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC4 (4 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC5 (5 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC6 (6 << PINCONF_FUNC_SHIFT) +# define PINCONF_FUNC7 (7 << PINCONF_FUNC_SHIFT) /* Pull-up/down resisters. These selections are available for all pins but may not * make sense for all pins. NOTE: that both pull up and down is not precluded.