[Nuvoton] Add button names BUTTON1/BUTTON2

pull/10209/head
ccli8 2019-03-25 13:16:10 +08:00
parent f1e664be82
commit be96ade527
5 changed files with 15 additions and 6 deletions

View File

@ -170,6 +170,8 @@ typedef enum {
// Button naming
SW2 = PB_0,
SW3 = PB_1,
BUTTON1 = SW2,
BUTTON2 = SW3,
} PinName;

View File

@ -131,6 +131,8 @@ typedef enum {
// Button naming
SW2 = PA_15,
SW3 = PA_14,
BUTTON1 = SW2,
BUTTON2 = SW3,
} PinName;

View File

@ -136,7 +136,8 @@ typedef enum {
SW2 = PF_11,
SW3 = PG_5,
#endif
BUTTON1 = SW2,
BUTTON2 = SW3,
} PinName;

View File

@ -128,6 +128,8 @@ typedef enum {
// Button naming
SW1 = PE_5,
SW2 = PE_6,
BUTTON1 = SW1,
BUTTON2 = SW2,
} PinName;

View File

@ -134,6 +134,8 @@ typedef enum {
// Button naming
SW1 = PC_12,
SW2 = PC_13,
BUTTON1 = SW1,
BUTTON2 = SW2,
} PinName;