Freescale: Add DEVICE_LED and DEVICE_BUTTON guard on #define of LEDx and BUTTONx pin mapping

pull/15104/head
Rajkumar Kanagaraj 2021-09-23 16:52:30 +01:00
parent 0fab221156
commit 8e42e2895d
1 changed files with 4 additions and 2 deletions

View File

@ -247,20 +247,22 @@ typedef enum {
#define LED_GREEN PTE26
#define LED_BLUE PTB21
#if DEVICE_LED
// Standardized LED names
#define LED1 LED_RED
#define LED2 LED_GREEN
#define LED3 LED_BLUE
#endif
//Push buttons
#define SW2 PTC6
#define SW3 PTA4
#if DEVICE_BUTTON
// Standardized button names
#define BUTTON1 SW2
#define BUTTON2 SW3
#endif
// SPI Pins for SD card.
// Note: They are different from the Arduino Uno SPI pins