[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,7 +170,9 @@ typedef enum {
// Button naming
SW2 = PB_0,
SW3 = PB_1,
BUTTON1 = SW2,
BUTTON2 = SW3,
} PinName;
#ifdef __cplusplus

View File

@ -131,7 +131,9 @@ typedef enum {
// Button naming
SW2 = PA_15,
SW3 = PA_14,
BUTTON1 = SW2,
BUTTON2 = SW3,
} PinName;
#ifdef __cplusplus

View File

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

View File

@ -128,7 +128,9 @@ typedef enum {
// Button naming
SW1 = PE_5,
SW2 = PE_6,
BUTTON1 = SW1,
BUTTON2 = SW2,
} PinName;
#ifdef __cplusplus

View File

@ -134,7 +134,9 @@ typedef enum {
// Button naming
SW1 = PC_12,
SW2 = PC_13,
BUTTON1 = SW1,
BUTTON2 = SW2,
} PinName;
#ifdef __cplusplus