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,

0 commit comments

Comments
 (0)