Skip to content

Commit 1b53295

Browse files
kegilbertadbridge
authored andcommitted
Added mapping to BTN-labelled switches
1 parent b165343 commit 1b53295

File tree

13 files changed

+37
-0
lines changed

13 files changed

+37
-0
lines changed

targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ typedef enum {
106106
// BTN Names
107107
BTN1 = P0_16,
108108
BTN2 = P0_1,
109+
// Standardized button names
110+
BUTTON1 = BTN1,
111+
BUTTON2 = BTN2,
109112

110113
// UART
111114
UART_TX = P0_19,

targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ typedef enum {
7979
//xbed lpc1768 Pin Names
8080
LED5 = P2_6,
8181
BTN1 = P2_8,
82+
// Standardized button names
83+
BUTTON1 = BTN1,
8284
SDA = P0_27,
8385
SCL = P0_28,
8486
ISP = P2_10,

targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ typedef enum {
615615
LED_BLUE = LED4,
616616

617617
BTN1 = P2_7,
618+
// Standardized button names
619+
BUTTON1 = BTN1,
618620

619621
// Serial pins - UART, SPI, I2C
620622
// 210E 210 200E 200

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/TARGET_EFM32GG_STK3700/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PB10,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Serial */
4952
SERIAL_TX = PD0,

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/TARGET_EFM32HG_STK3400/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PC10,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Serial */
4952
SERIAL_TX = PE10,

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG/TARGET_EFM32LG_STK3600/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PB10,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Serial */
4952
SERIAL_TX = PD0,

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG/TARGET_EFM32PG_STK3401/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PF7,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Serial (just some usable pins) */
4952
SERIAL_TX = PD10,

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/TARGET_EFM32PG12_STK3402/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PF7,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Expansion headers */
4952
EXP3 = PA8,

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG/TARGET_EFM32WG_STK3800/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PB10,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Serial */
4952
SERIAL_TX = PD0,

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG/TARGET_EFM32ZG_STK3200/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ typedef enum {
4444
SW1 = PC9,
4545
BTN0 = SW0,
4646
BTN1 = SW1,
47+
// Standardized button names
48+
BUTTON1 = BTN0,
49+
BUTTON2 = BTN1,
4750

4851
/* Serial */
4952
SERIAL_TX = PD7,

0 commit comments

Comments
 (0)