aboutsummaryrefslogtreecommitdiff
path: root/include/lpc13xx/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lpc13xx/gpio.h')
-rw-r--r--include/lpc13xx/gpio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/lpc13xx/gpio.h b/include/lpc13xx/gpio.h
index 5dcd23a..b5455d7 100644
--- a/include/lpc13xx/gpio.h
+++ b/include/lpc13xx/gpio.h
@@ -33,6 +33,13 @@
/* --- GPIO registers ------------------------------------------------------ */
+/* GPIO data register (GPIOn_DATA) */
+#define GPIO_DATA(port) MMIO32(port + 0x3ffc)
+#define GPIO0_DATA GPIO_DATA(GPIO0)
+#define GPIO1_DATA GPIO_DATA(GPIO1)
+#define GPIO2_DATA GPIO_DATA(GPIO2)
+#define GPIO3_DATA GPIO_DATA(GPIO3)
+
/* GPIO data direction register (GPIOn_DIR) */
#define GPIO_DIR(port) MMIO32(port + 0x00)
#define GPIO0_DIR GPIO_DIR(GPIO0)