Skip to content

Commit 2a7c79b

Browse files
committed
M487: Remove BUTTON1/2 for custom targets
This is to support custom targets based on M480 series chips.
1 parent 829e9ca commit 2a7c79b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

targets/TARGET_NUVOTON/TARGET_M480/PinNames.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ typedef enum {
132132
#if TARGET_NUMAKER_PFM_M487
133133
SW2 = PG_15,
134134
SW3 = PF_11,
135+
BUTTON1 = SW2,
136+
BUTTON2 = SW3,
135137
#elif TARGET_NUMAKER_IOT_M487
136138
SW2 = PF_11,
137139
SW3 = PG_5,
138-
#endif
139140
BUTTON1 = SW2,
140141
BUTTON2 = SW3,
142+
#endif
141143

142144
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
143145
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,

0 commit comments

Comments
 (0)