mirror of https://github.com/ARMmbed/mbed-os.git
NXP: Add DEVICE_LED and DEVICE_BUTTON guard on #define of LEDx and BUTTONx pin mapping
parent
fddd23494e
commit
24c2faf623
|
@ -203,9 +203,11 @@ typedef enum {
|
|||
NC = (int)0xFFFFFFFF
|
||||
} PinName;
|
||||
|
||||
// Standardized LED and button names
|
||||
#if DEVICE_LED
|
||||
// Standardized LED names
|
||||
#define LED1 GPIO_AD_B0_09 // USER LED (green)
|
||||
#define USER_LED LED1
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
PullNone = 0,
|
||||
|
|
|
@ -33,7 +33,11 @@ typedef enum {
|
|||
|
||||
#define GPIO_PORT_SHIFT 12
|
||||
#define GPIO_MUX_PORT 5
|
||||
|
||||
#if DEVICE_LED
|
||||
// Standardized led names
|
||||
#define LED1 GPIO_AD_04
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
|
||||
|
|
Loading…
Reference in New Issue