summaryrefslogtreecommitdiff
path: root/boards
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo.salveti@linaro.org>2017-01-20 15:03:28 -0200
committerKumar Gala <kumar.gala@linaro.org>2017-01-23 15:15:54 -0600
commit6c3446dfcd44ab581eb9c80c0001ef156d4913e9 (patch)
tree223e20b97144919f956ee6ed82f6724090875a25 /boards
parent59d1025e6295de63c2ded36777dddafc41828842 (diff)
boards: 96b_nitrogen: Add button and LED definitions
Add the GPIO pin and port definitions for the button and LEDs available on the board. Change-Id: If74cf9d780227346c7c8816e6eadca00b16953b2 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'boards')
-rw-r--r--boards/arm/96b_nitrogen/board.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/boards/arm/96b_nitrogen/board.h b/boards/arm/96b_nitrogen/board.h
index bcc10536d..f88cdfa5a 100644
--- a/boards/arm/96b_nitrogen/board.h
+++ b/boards/arm/96b_nitrogen/board.h
@@ -9,4 +9,25 @@
#include <soc.h>
+/* Onboard USR1 GREEN LED */
+#define USR1_GPIO_PIN 29
+#define USR1_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
+
+/* Onboard BT BLUE LED */
+#define BT_GPIO_PIN 28
+#define BT_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
+
+/* USER push button */
+#define USER_PB_GPIO_PIN 27
+#define USER_PB_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
+
+/* Aliases to make the basic samples (e.g. LED, button) work */
+#define LED0_GPIO_PIN USR1_GPIO_PIN
+#define LED0_GPIO_PORT USR1_GPIO_PORT
+#define LED1_GPIO_PIN BT_GPIO_PIN
+#define LED1_GPIO_PORT BT_GPIO_PORT
+#define SW0_GPIO_PIN USER_PB_GPIO_PIN
+#define SW0_GPIO_NAME USER_PB_GPIO_PORT
+
+
#endif /* __INC_BOARD_H */