diff --git a/targets/TARGET_NUVOTON/TARGET_M2351/PinNames.h b/targets/TARGET_NUVOTON/TARGET_M2351/PinNames.h index cb88ad3a94..53ac662c1e 100644 --- a/targets/TARGET_NUVOTON/TARGET_M2351/PinNames.h +++ b/targets/TARGET_NUVOTON/TARGET_M2351/PinNames.h @@ -170,7 +170,9 @@ typedef enum { // Button naming SW2 = PB_0, SW3 = PB_1, - + BUTTON1 = SW2, + BUTTON2 = SW3, + } PinName; #ifdef __cplusplus diff --git a/targets/TARGET_NUVOTON/TARGET_M451/PinNames.h b/targets/TARGET_NUVOTON/TARGET_M451/PinNames.h index 577ff8d28c..e64f2de337 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/PinNames.h +++ b/targets/TARGET_NUVOTON/TARGET_M451/PinNames.h @@ -131,7 +131,9 @@ typedef enum { // Button naming SW2 = PA_15, SW3 = PA_14, - + BUTTON1 = SW2, + BUTTON2 = SW3, + } PinName; #ifdef __cplusplus diff --git a/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h b/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h index 36b043d57d..ca6c9a555d 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h +++ b/targets/TARGET_NUVOTON/TARGET_M480/PinNames.h @@ -136,8 +136,9 @@ typedef enum { SW2 = PF_11, SW3 = PG_5, #endif - - + BUTTON1 = SW2, + BUTTON2 = SW3, + } PinName; #ifdef __cplusplus diff --git a/targets/TARGET_NUVOTON/TARGET_NANO100/PinNames.h b/targets/TARGET_NUVOTON/TARGET_NANO100/PinNames.h index 4658f5261b..01215d7ee0 100644 --- a/targets/TARGET_NUVOTON/TARGET_NANO100/PinNames.h +++ b/targets/TARGET_NUVOTON/TARGET_NANO100/PinNames.h @@ -128,7 +128,9 @@ typedef enum { // Button naming SW1 = PE_5, SW2 = PE_6, - + BUTTON1 = SW1, + BUTTON2 = SW2, + } PinName; #ifdef __cplusplus diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/PinNames.h b/targets/TARGET_NUVOTON/TARGET_NUC472/PinNames.h index 333ada6663..b3f44eba65 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/PinNames.h +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/PinNames.h @@ -134,7 +134,9 @@ typedef enum { // Button naming SW1 = PC_12, SW2 = PC_13, - + BUTTON1 = SW1, + BUTTON2 = SW2, + } PinName; #ifdef __cplusplus