Fix another LPC43xx pin configuration problem

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4926 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-07-10 20:51:39 +00:00
parent 8f9590282f
commit 89b080564b
1 changed files with 9 additions and 9 deletions

View File

@ -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.