From 2f770b77a9eec6e016206706776f4a69e1f3b9c5 Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Mon, 2 Mar 2020 14:18:40 +0800 Subject: [PATCH] M487: Remove BUTTON1/2 for custom targets This is to support custom targets based on M480 series chips. --- targets/TARGET_NUVOTON/TARGET_M480/PinNames.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h b/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h index a9357ce0f9..f9592b3606 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h +++ b/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h @@ -132,12 +132,14 @@ typedef enum { #if TARGET_NUMAKER_PFM_M487 SW2 = PG_15, SW3 = PF_11, + BUTTON1 = SW2, + BUTTON2 = SW3, #elif TARGET_NUMAKER_IOT_M487 SW2 = PF_11, SW3 = PG_5, -#endif BUTTON1 = SW2, BUTTON2 = SW3, +#endif // Force PinName to 32-bit required by NU_PINNAME_BIND(...) FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,