Skip to content

Commit f906707

Browse files
author
James Norton
committed
Changed LED definitions to be compliant with Generic Pin Naming standard
Removed I2C_SCL and I2C_SDA from PinName enum as these are now defined in PinNameAliases.h
1 parent 100ba31 commit f906707

File tree

1 file changed

+3
-11
lines changed
  • targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK

1 file changed

+3
-11
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK/PinNames.h

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,6 @@ typedef enum {
170170
GPIO_SD_B1_10 = ((3 << GPIO_PORT_SHIFT) | 10),
171171
GPIO_SD_B1_11 = ((3 << GPIO_PORT_SHIFT) | 11),
172172

173-
LED_GREEN = GPIO_AD_B0_09,
174-
175-
// mbed original LED naming
176-
LED1 = LED_GREEN,
177-
LED2 = LED_GREEN,
178-
LED3 = LED_GREEN,
179-
LED4 = LED_GREEN,
180-
181173
// USB Pins
182174
CONSOLE_TX = GPIO_AD_B0_12,
183175
CONSOLE_RX = GPIO_AD_B0_13,
@@ -207,13 +199,13 @@ typedef enum {
207199
ARDUINO_UNO_A4 = GPIO_AD_B1_01,
208200
ARDUINO_UNO_A5 = GPIO_AD_B1_00,
209201

210-
I2C_SCL = ARDUINO_UNO_A5,
211-
I2C_SDA = ARDUINO_UNO_A4,
212-
213202
// Not connected
214203
NC = (int)0xFFFFFFFF
215204
} PinName;
216205

206+
// Standardized LED and button names
207+
#define LED1 GPIO_AD_B0_09 // USER LED (green)
208+
#define USER_LED LED1
217209

218210
typedef enum {
219211
PullNone = 0,

0 commit comments

Comments
 (0)