diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-10 20:51:39 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-10 20:51:39 +0000 |
commit | de424457b245b55b1e9450ae084d4c03fed74834 (patch) | |
tree | 88028ef2d6b79a77b8293569a7137e115813d18d /nuttx/arch/arm/src/lpc43xx | |
parent | 98cdc4e0feeaea37484c2645426134662ed08ca8 (diff) |
Fix another LPC43xx pin configuration problem
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4926 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/lpc43xx')
-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 29d58d061f..293f838e95 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. |