M487: Remove BUTTON1/2 for custom targets

This is to support custom targets based on M480 series chips.
pull/12576/head
Chun-Chieh Li 2020-03-02 14:18:40 +08:00
parent c4ffd38a90
commit 2f770b77a9
1 changed files with 3 additions and 1 deletions

View File

@ -132,12 +132,14 @@ typedef enum {
#if TARGET_NUMAKER_PFM_M487 #if TARGET_NUMAKER_PFM_M487
SW2 = PG_15, SW2 = PG_15,
SW3 = PF_11, SW3 = PF_11,
BUTTON1 = SW2,
BUTTON2 = SW3,
#elif TARGET_NUMAKER_IOT_M487 #elif TARGET_NUMAKER_IOT_M487
SW2 = PF_11, SW2 = PF_11,
SW3 = PG_5, SW3 = PG_5,
#endif
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,
#endif
// Force PinName to 32-bit required by NU_PINNAME_BIND(...) // Force PinName to 32-bit required by NU_PINNAME_BIND(...)
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF, FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,