Skip to content

Commit b165343

Browse files
kegilbertadbridge
authored andcommitted
Adding consistent button pin mappings
1 parent 5fdf630 commit b165343

File tree

18 files changed

+37
-153
lines changed

18 files changed

+37
-153
lines changed

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ typedef enum {
203203
//Push buttons
204204
SW1 = PTC3,
205205
SW3 = PTC12,
206+
BUTTON1 = SW1,
207+
BUTTON2 = SW3,
206208

207209
// USB Pins
208210
USBTX = PTA2,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTD11,
206206
SW3 = PTA10,
207+
BUTTON1 = SW2,
208+
BUTTON2 = SW3,
207209

208210
// USB Pins
209211
USBTX = PTB17,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ typedef enum {
134134
//Push buttons
135135
SW2 = PTA4,
136136
SW3 = PTC6,
137+
BUTTON1 = SW2,
138+
BUTTON2 = SW3,
137139

138140
// USB Pins
139141
USBTX = PTC15,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ typedef enum {
9898
//Push buttons
9999
SW1 = PTA4,
100100
SW3 = PTC1,
101+
BUTTON1 = SW1,
102+
BUTTON2 = SW3,
101103

102104
// USB Pins
103105
USBTX = PTA2,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ typedef enum {
9797
//Push buttons
9898
SW1 = PTA4,
9999
SW3 = PTC3,
100+
BUTTON1 = SW1,
101+
BUTTON2 = SW3,
100102

101103
// USB Pins
102104
USBTX = PTA2,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ typedef enum {
118118
//Push buttons
119119
SW2 = PTA4,
120120
SW3 = PTD0,
121+
BUTTON1 = SW2,
122+
BUTTON2 = SW3,
121123

122124
// USB Pins
123125
USBTX = PTB17,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ typedef enum {
8282
SW2 = PTE3,
8383
SW3 = PTD1,
8484
SW4 = PTA19,
85+
BUTTON1 = SW1,
86+
BUTTON2 = SW2,
87+
BUTTON3 = SW3,
88+
BUTTON4 = SW4,
8589

8690
// USB Pins
8791
USBTX = PTE0,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ typedef enum {
6969
//Push buttons
7070
SW3 = PTC4,
7171
SW4 = PTC5,
72+
BUTTON1 = SW3,
73+
BUTTON2 = SW4,
7274

7375
// USB Pins
7476
USBTX = PTC7,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTC1,
206206
SW3 = PTB17,
207+
BUTTON1 = SW2,
208+
BUTTON2 = SW3,
207209

208210
// USB Pins
209211
USBTX = PTE0,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTC6,
206206
SW3 = PTA4,
207+
BUTTON1 = SW2,
208+
BUTTON2 = SW3,
207209

208210
// USB Pins
209211
USBTX = PTB17,

0 commit comments

Comments
 (0)