diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-10 20:51:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-10 20:51:39 +0000 |
commit | 7c83db00f6f89067017473c072edf7d4e55f71e6 (patch) | |
tree | 88028ef2d6b79a77b8293569a7137e115813d18d /nuttx/arch/arm/src/lpc43xx/lpc43_pinconfig.h | |
parent | 138db51f4c7c2ad07f7b9e7e8fc032997f0457f9 (diff) | |
download | px4-nuttx-7c83db00f6f89067017473c072edf7d4e55f71e6.tar.gz px4-nuttx-7c83db00f6f89067017473c072edf7d4e55f71e6.tar.bz2 px4-nuttx-7c83db00f6f89067017473c072edf7d4e55f71e6.zip |
Fix another LPC43xx pin configuration problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4926 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc43xx/lpc43_pinconfig.h')
-rw-r--r-- | nuttx/arch/arm/src/lpc43xx/lpc43_pinconfig.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_pinconfig.h b/nuttx/arch/arm/src/lpc43xx/lpc43_pinconfig.h index 29d58d061..293f838e9 100644 --- a/nuttx/arch/arm/src/lpc43xx/lpc43_pinconfig.h +++ b/nuttx/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. |