Merge pull request #10209 from OpenNuvoton/nuvoton_add-button-name

Nuvoton: Add button names BUTTON1/BUTTON2
pull/9904/head
Cruz Monrreal 2019-03-27 00:35:03 -05:00 committed by GitHub
commit be38d95383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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