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
|
NC = (int)0xFFFFFFFF
|
||||||
} PinName;
|
} PinName;
|
||||||
|
|
||||||
// Standardized LED and button names
|
#if DEVICE_LED
|
||||||
|
// Standardized LED names
|
||||||
#define LED1 GPIO_AD_B0_09 // USER LED (green)
|
#define LED1 GPIO_AD_B0_09 // USER LED (green)
|
||||||
#define USER_LED LED1
|
#define USER_LED LED1
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PullNone = 0,
|
PullNone = 0,
|
||||||
|
|
|
@ -33,7 +33,11 @@ typedef enum {
|
||||||
|
|
||||||
#define GPIO_PORT_SHIFT 12
|
#define GPIO_PORT_SHIFT 12
|
||||||
#define GPIO_MUX_PORT 5
|
#define GPIO_MUX_PORT 5
|
||||||
|
|
||||||
|
#if DEVICE_LED
|
||||||
|
// Standardized led names
|
||||||
#define LED1 GPIO_AD_04
|
#define LED1 GPIO_AD_04
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue