summaryrefslogtreecommitdiff
path: root/nuttx/configs/dk-tm4c129x/include/board.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-18 11:51:30 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-18 11:51:30 -0600
commit5fbc5a47d4e15adeabe0881d5f972267c3ddb31b (patch)
treec566116ea686fd7254da8c550e4eeebf685e0fbb /nuttx/configs/dk-tm4c129x/include/board.h
parent94371e4b073c8c2e2b3ed8dbf88f0797bcb73c41 (diff)
downloadnuttx-5fbc5a47d4e15adeabe0881d5f972267c3ddb31b.tar.gz
nuttx-5fbc5a47d4e15adeabe0881d5f972267c3ddb31b.tar.bz2
nuttx-5fbc5a47d4e15adeabe0881d5f972267c3ddb31b.zip
DK-TM4C129X: Add support for buttons
Diffstat (limited to 'nuttx/configs/dk-tm4c129x/include/board.h')
-rw-r--r--nuttx/configs/dk-tm4c129x/include/board.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/nuttx/configs/dk-tm4c129x/include/board.h b/nuttx/configs/dk-tm4c129x/include/board.h
index 7905f18ea..d474a1348 100644
--- a/nuttx/configs/dk-tm4c129x/include/board.h
+++ b/nuttx/configs/dk-tm4c129x/include/board.h
@@ -152,18 +152,25 @@
#define LED_PANIC 3 /* ON OFF OFF (flashing 2Hz) */
/* Button definitions ***************************************************************/
-/* The TMC4C123G LaunchPad has a two buttons:
+/* There are three push buttons on the board.
*
- * BOARD_SW1 -- Connected to PF4
- * BOARD_SW2 -- Connected to PF0
+ * --- ------------ -----------------
+ * Pin Pin Function Jumper
+ * --- ------------ -----------------
+ * PP1 Select SW4 J37 pins 1 and 2
+ * PN3 Up SW2 J37 pins 3 and 4
+ * PE5 Down SW3 J37 pins 5 and 6
+ * --- ------------ -----------------
*/
-#define BUTTON_SW1 0
-#define BUTTON_SW2 1
-#define NUM_BUTTONS 2
+#define BUTTON_SW2 0
+#define BUTTON_SW3 1
+#define BUTTON_SW4 2
+#define NUM_BUTTONS 3
-#define BUTTON_SW1_BIT (1 << BUTTON_SW1)
#define BUTTON_SW2_BIT (1 << BUTTON_SW2)
+#define BUTTON_SW3_BIT (1 << BUTTON_SW3)
+#define BUTTON_SW4_BIT (1 << BUTTON_SW4)
/* Pin Multiplexing Disambiguation **************************************************/