Skip to content

Commit be96ade

Browse files
committed
[Nuvoton] Add button names BUTTON1/BUTTON2
1 parent f1e664b commit be96ade

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

targets/TARGET_NUVOTON/TARGET_M2351/PinNames.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ typedef enum {
170170
// Button naming
171171
SW2 = PB_0,
172172
SW3 = PB_1,
173-
173+
BUTTON1 = SW2,
174+
BUTTON2 = SW3,
175+
174176
} PinName;
175177

176178
#ifdef __cplusplus

targets/TARGET_NUVOTON/TARGET_M451/PinNames.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ typedef enum {
131131
// Button naming
132132
SW2 = PA_15,
133133
SW3 = PA_14,
134-
134+
BUTTON1 = SW2,
135+
BUTTON2 = SW3,
136+
135137
} PinName;
136138

137139
#ifdef __cplusplus

targets/TARGET_NUVOTON/TARGET_M480/PinNames.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ typedef enum {
136136
SW2 = PF_11,
137137
SW3 = PG_5,
138138
#endif
139-
140-
139+
BUTTON1 = SW2,
140+
BUTTON2 = SW3,
141+
141142
} PinName;
142143

143144
#ifdef __cplusplus

targets/TARGET_NUVOTON/TARGET_NANO100/PinNames.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ typedef enum {
128128
// Button naming
129129
SW1 = PE_5,
130130
SW2 = PE_6,
131-
131+
BUTTON1 = SW1,
132+
BUTTON2 = SW2,
133+
132134
} PinName;
133135

134136
#ifdef __cplusplus

targets/TARGET_NUVOTON/TARGET_NUC472/PinNames.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ typedef enum {
134134
// Button naming
135135
SW1 = PC_12,
136136
SW2 = PC_13,
137-
137+
BUTTON1 = SW1,
138+
BUTTON2 = SW2,
139+
138140
} PinName;
139141

140142
#ifdef __cplusplus

0 commit comments

Comments
 (0)