summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-10 18:33:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-10 18:33:14 +0000
commit138db51f4c7c2ad07f7b9e7e8fc032997f0457f9 (patch)
tree4085943a5e641b60d2e626a68d70b4072112be4f /nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h
parent0c0a801ee2dcda5e38bb6b86d4c7504673ea9574 (diff)
downloadpx4-nuttx-138db51f4c7c2ad07f7b9e7e8fc032997f0457f9.tar.gz
px4-nuttx-138db51f4c7c2ad07f7b9e7e8fc032997f0457f9.tar.bz2
px4-nuttx-138db51f4c7c2ad07f7b9e7e8fc032997f0457f9.zip
Several fixes to LPC43 pin and GPIO configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4925 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h')
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h b/nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h
index f494be6b5..8f8460966 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_gpio.h
@@ -68,7 +68,7 @@
* ---- ---- ---- ----
* Normal GPIO: MMV. .... PPPB BBBB
* Normal Interrupt: MMCC CIII PPPB BBBB
- * Group Interrupt: MM.N P.. PPPB BBBB
+ * Group Interrupt: MM.N P... PPPB BBBB
*/
/* GPIO mode:
@@ -184,10 +184,10 @@
* 1111 1100 0000 0000
* 5432 1098 7654 3210
* ---- ---- ---- ----
- * .... GPII .... ....
+ * .... .... PPP. ....
*/
-#define GPIO_PORT_SHIFT (4) /* Bits 4-6: Port number */
+#define GPIO_PORT_SHIFT (5) /* Bits 5-7: Port number */
#define GPIO_PORT_MASK (7 << GPIO_PORT_SHIFT)
# define GPIO_PORT0 (0 << GPIO_PORT_SHIFT)
# define GPIO_PORT1 (1 << GPIO_PORT_SHIFT)