Skip to content

Commit 0c2af26

Browse files
Merge pull request #4249 from kegilbert/button-mapping-kg
Add consistent button names across targets
2 parents 138dbee + 0268c85 commit 0c2af26

File tree

74 files changed

+187
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+187
-0
lines changed

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ typedef enum {
203203
//Push buttons
204204
SW1 = PTC3,
205205
SW3 = PTC12,
206+
// Standardized button names
207+
BUTTON1 = SW1,
208+
BUTTON2 = SW3,
206209

207210
// USB Pins
208211
USBTX = PTA2,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTD11,
206206
SW3 = PTA10,
207+
// Standardized button names
208+
BUTTON1 = SW2,
209+
BUTTON2 = SW3,
207210

208211
// USB Pins
209212
USBTX = PTB17,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ typedef enum {
134134
//Push buttons
135135
SW2 = PTA4,
136136
SW3 = PTC6,
137+
// Standardized button names
138+
BUTTON1 = SW2,
139+
BUTTON2 = SW3,
137140

138141
// USB Pins
139142
USBTX = PTC15,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ typedef enum {
9898
//Push buttons
9999
SW1 = PTA4,
100100
SW3 = PTC1,
101+
// Standardized button names
102+
BUTTON1 = SW1,
103+
BUTTON2 = SW3,
101104

102105
// USB Pins
103106
USBTX = PTA2,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ typedef enum {
9797
//Push buttons
9898
SW1 = PTA4,
9999
SW3 = PTC3,
100+
// Standardized button names
101+
BUTTON1 = SW1,
102+
BUTTON2 = SW3,
100103

101104
// USB Pins
102105
USBTX = PTA2,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ typedef enum {
118118
//Push buttons
119119
SW2 = PTA4,
120120
SW3 = PTD0,
121+
// Standardized button names
122+
BUTTON1 = SW2,
123+
BUTTON2 = SW3,
121124

122125
// USB Pins
123126
USBTX = PTB17,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/TARGET_FRDM/PinNames.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ typedef enum {
8282
SW2 = PTE3,
8383
SW3 = PTD1,
8484
SW4 = PTA19,
85+
// Standardized button names
86+
BUTTON1 = SW1,
87+
BUTTON2 = SW2,
88+
BUTTON3 = SW3,
89+
BUTTON4 = SW4,
8590

8691
// USB Pins
8792
USBTX = PTE0,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ typedef enum {
6969
//Push buttons
7070
SW3 = PTC4,
7171
SW4 = PTC5,
72+
// Standardized button names
73+
BUTTON1 = SW3,
74+
BUTTON2 = SW4,
7275

7376
// USB Pins
7477
USBTX = PTC7,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTC1,
206206
SW3 = PTB17,
207+
// Standardized button names
208+
BUTTON1 = SW2,
209+
BUTTON2 = SW3,
207210

208211
// USB Pins
209212
USBTX = PTE0,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTC6,
206206
SW3 = PTA4,
207+
// Standardized button names
208+
BUTTON1 = SW2,
209+
BUTTON2 = SW3,
207210

208211
// USB Pins
209212
USBTX = PTB17,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ typedef enum {
201201
LED3 = LED_BLUE,
202202
LED4 = LED_RED,
203203

204+
// Standardized button names
205+
BUTTON1 = PTA12,
206+
BUTTON2 = PTA13,
207+
BUTTON3 = PTA15,
208+
204209
// USB Pins
205210
USBTX = PTB17,
206211
USBRX = PTB16,

targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ typedef enum {
184184
// Push button
185185
SW2 = P6_4,
186186
SW3 = P6_5,
187+
// Standardized button names
188+
BUTTON1 = SW2,
189+
BUTTON2 = SW3,
187190

188191
// UART pins
189192
USBTX = P7_3,

targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ typedef enum {
128128

129129
// Push button
130130
SW1 = P1_5,
131+
// Standardized button names
132+
BUTTON1 = SW1,
131133

132134
// UART Pins
133135
UART0_RX = P1_0,

targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ typedef enum {
126126
SW1 = P2_1,
127127
SW2 = NOT_CONNECTED,
128128
SW3 = NOT_CONNECTED,
129+
// Standardized button names
130+
BUTTON1 = SW1,
129131

130132
// USB bridge connected UART pins
131133
USBTX = P0_1,

targets/TARGET_Maxim/TARGET_MAX32625/TARGET_MAX32625MBED/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ typedef enum {
7676
// Push button
7777
SW2 = P2_2,
7878
SW3 = P2_3,
79+
// Standardized button names
80+
BUTTON1 = SW2,
81+
BUTTON2 = SW3,
7982

8083
// USB bridge connected UART pins
8184
USBTX = P2_1,

targets/TARGET_Maxim/TARGET_MAX32625/TARGET_MAX32625NEXPAQ/PinNames.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ typedef enum {
7575
SW1 = P4_2,
7676
SW2 = P4_3,
7777
SW3 = P4_4,
78+
// Standardized button names
79+
BUTTON1 = SW1,
80+
BUTTON2 = SW2,
81+
BUTTON3 = SW3,
7882

7983
// USB bridge connected UART pins
8084
USBTX = P2_1,

targets/TARGET_Maxim/TARGET_MAX32630/TARGET_MAX32630FTHR/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ typedef enum {
7979
SW1 = P2_3,
8080
SW2 = NOT_CONNECTED,
8181
SW3 = NOT_CONNECTED,
82+
// Standardized button names
83+
BUTTON1 = SW1,
8284

8385
// USB bridge connected UART pins
8486
USBTX = P2_1,

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_ONSEMI/TARGET_NCS36510/PinNames.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,14 @@ typedef enum {
128128
LED_YELLOW = GPIO6,
129129
LED_BLUE = GPIO5,
130130
USER_BUTTON = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 - Alias of SW1 */
131+
131132
SW1 = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 */
132133
SW2 = GPIO10, /*NEW connection on NCS36510-RF Rev 1.1 */
134+
135+
// Standardized button names
136+
BUTTON1 = SW1,
137+
BUTTON2 = SW2,
138+
133139
SERIAL_TX = GPIO0,
134140
SERIAL_RX = GPIO1,
135141
USBTX = GPIO0,

targets/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ typedef enum {
8787
I2C_SDA = D14,
8888

8989
USER_BUTTON0 = P6_0,
90+
// Standardized button names
91+
BUTTON1 = USER_BUTTON0,
9092

9193
// Not connected
9294
NC = (int)0xFFFFFFFF

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ typedef enum {
186186
LED3 = PC_9,
187187
LED4 = PC_8,
188188
USER_BUTTON = PA_0,
189+
// Standardized button names
190+
BUTTON1 = USER_BUTTON,
189191
SERIAL_TX = PA_2,
190192
SERIAL_RX = PA_3,
191193
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ typedef enum {
133133
LED3 = PA_5,
134134
LED4 = PA_5,
135135
USER_BUTTON = PC_13,
136+
// Standardized button names
137+
BUTTON1 = USER_BUTTON,
136138
SERIAL_TX = PA_2,
137139
SERIAL_RX = PA_3,
138140
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED3 = PA_5,
130130
LED4 = PA_5,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED3 = PA_5,
130130
LED4 = PA_5,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ typedef enum {
130130
LED3 = PA_5,
131131
LED4 = PA_5,
132132
USER_BUTTON = PC_13,
133+
// Standardized button names
134+
BUTTON1 = USER_BUTTON,
133135
SERIAL_TX = PA_2,
134136
SERIAL_RX = PA_3,
135137
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ typedef enum {
150150
LED3 = PC_9,
151151
LED4 = PC_8,
152152
USER_BUTTON = PA_0,
153+
// Standardized button names
154+
BUTTON1 = USER_BUTTON,
153155
USBTX = PA_2,
154156
USBRX = PA_3,
155157
I2C_SCL = PB_6,

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ typedef enum {
125125
LED3 = PA_5,
126126
LED4 = PA_5,
127127
USER_BUTTON = PC_13,
128+
// Standardized button names
129+
BUTTON1 = USER_BUTTON,
128130
SERIAL_TX = PA_2,
129131
SERIAL_RX = PA_3,
130132
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ typedef enum {
230230
LED3 = PB_14,
231231
LED4 = LED1,
232232
USER_BUTTON = PC_13,
233+
// Standardized button names
234+
BUTTON1 = USER_BUTTON,
233235
SERIAL_TX = PD_8,
234236
SERIAL_RX = PD_9,
235237
USBTX = SERIAL_TX,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/TARGET_NUCLEO_F302R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED3 = PB_13,
130130
LED4 = PB_13,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/TARGET_NUCLEO_F303K8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ typedef enum {
104104
LED3 = PB_3,
105105
LED4 = PB_3,
106106
USER_BUTTON = 0x20, // no user button on the board
107+
// Standardized button names
108+
BUTTON1 = USER_BUTTON,
107109
SERIAL_TX = PA_2,
108110
SERIAL_RX = PA_15,
109111
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TARGET_DISCO_F303VC/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ typedef enum {
189189
LED9 = PE_12,
190190
LED10 = PE_13,
191191
USER_BUTTON = PA_0,
192+
// Standardized button names
193+
BUTTON1 = USER_BUTTON,
192194
SERIAL_TX = PA_2,
193195
SERIAL_RX = PA_3,
194196
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303RE/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ typedef enum {
137137
LED3 = PA_5,
138138
LED4 = PA_5,
139139
USER_BUTTON = PC_13,
140+
// Standardized button names
141+
BUTTON1 = USER_BUTTON,
140142
SERIAL_TX = PA_2,
141143
SERIAL_RX = PA_3,
142144
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ typedef enum {
204204
LED3 = PB_14,
205205
LED4 = LED1,
206206
USER_BUTTON = PC_13,
207+
// Standardized button names
208+
BUTTON1 = USER_BUTTON,
207209
SERIAL_TX = PD_8, // Virtual Com Port
208210
SERIAL_RX = PD_9, // Virtual Com Port
209211
USBTX = SERIAL_TX, // Virtual Com Port

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/TARGET_DISCO_F334C8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ typedef enum {
119119
LED3 = PB_8,
120120
LED4 = PB_9,
121121
USER_BUTTON = PA_0,
122+
// Standardized button names
123+
BUTTON1 = USER_BUTTON,
122124
SERIAL_TX = PB_3,
123125
SERIAL_RX = PB_4,
124126
USBTX = PB_3,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/TARGET_NUCLEO_F334R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ typedef enum {
132132
LED3 = PA_5,
133133
LED4 = PA_5,
134134
USER_BUTTON = PC_13,
135+
// Standardized button names
136+
BUTTON1 = USER_BUTTON,
135137
SERIAL_TX = PA_2,
136138
SERIAL_RX = PA_3,
137139
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ typedef enum {
120120
LED4 = PD_15,
121121
LED_RED = LED1,
122122
USER_BUTTON = PA_0,
123+
// Standardized button names
124+
BUTTON1 = USER_BUTTON,
123125
SERIAL_TX = PA_2,
124126
SERIAL_RX = PA_3,
125127
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED4 = PA_5,
130130
LED_RED = LED1,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_DISCO_F407VG/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ typedef enum {
205205
LED6 = PD_15,
206206
LED_RED = LED1,
207207
USER_BUTTON = PA_0,
208+
// Standardized button names
209+
BUTTON1 = USER_BUTTON,
208210
SERIAL_TX = PA_2, /* USART2 */
209211
SERIAL_RX = PA_3,
210212
USBTX = PA_2, /* USART2 */

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F410xB/TARGET_NUCLEO_F410RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED4 = PA_5,
130130
LED_RED = LED1,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

0 commit comments

Comments
 (0)