mirror of https://github.com/ARMmbed/mbed-os.git
Freescale: Add DEVICE_LED and DEVICE_BUTTON guard on #define of LEDx and BUTTONx pin mapping
parent
0fab221156
commit
8e42e2895d
|
@ -247,20 +247,22 @@ typedef enum {
|
||||||
#define LED_GREEN PTE26
|
#define LED_GREEN PTE26
|
||||||
#define LED_BLUE PTB21
|
#define LED_BLUE PTB21
|
||||||
|
|
||||||
|
#if DEVICE_LED
|
||||||
// Standardized LED names
|
// Standardized LED names
|
||||||
#define LED1 LED_RED
|
#define LED1 LED_RED
|
||||||
#define LED2 LED_GREEN
|
#define LED2 LED_GREEN
|
||||||
#define LED3 LED_BLUE
|
#define LED3 LED_BLUE
|
||||||
|
#endif
|
||||||
|
|
||||||
//Push buttons
|
//Push buttons
|
||||||
#define SW2 PTC6
|
#define SW2 PTC6
|
||||||
#define SW3 PTA4
|
#define SW3 PTA4
|
||||||
|
|
||||||
|
#if DEVICE_BUTTON
|
||||||
// Standardized button names
|
// Standardized button names
|
||||||
#define BUTTON1 SW2
|
#define BUTTON1 SW2
|
||||||
#define BUTTON2 SW3
|
#define BUTTON2 SW3
|
||||||
|
#endif
|
||||||
|
|
||||||
// SPI Pins for SD card.
|
// SPI Pins for SD card.
|
||||||
// Note: They are different from the Arduino Uno SPI pins
|
// Note: They are different from the Arduino Uno SPI pins
|
||||||
|
|
Loading…
Reference in New Issue