Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARDUINO_UNO form factor and new PinNames for MIMXRT1050 target #14628

Merged
merged 3 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,50 +170,42 @@ typedef enum {
GPIO_SD_B1_10 = ((3 << GPIO_PORT_SHIFT) | 10),
GPIO_SD_B1_11 = ((3 << GPIO_PORT_SHIFT) | 11),

LED_GREEN = GPIO_AD_B0_09,

// mbed original LED naming
LED1 = LED_GREEN,
LED2 = LED_GREEN,
LED3 = LED_GREEN,
LED4 = LED_GREEN,

// USB Pins
CONSOLE_TX = GPIO_AD_B0_12,
CONSOLE_RX = GPIO_AD_B0_13,

// Arduino Headers
D0 = GPIO_AD_B1_07,
D1 = GPIO_AD_B1_06,
D2 = GPIO_AD_B0_11,
D3 = GPIO_AD_B1_08,
D4 = GPIO_AD_B0_09,
D5 = GPIO_AD_B0_10,
D6 = GPIO_AD_B1_02,
D7 = GPIO_AD_B1_03,
D8 = GPIO_AD_B0_03,
D9 = GPIO_AD_B0_02,
D10 = GPIO_SD_B0_01,
D11 = GPIO_SD_B0_02,
D12 = GPIO_SD_B0_03,
D13 = GPIO_SD_B0_00,
D14 = GPIO_AD_B0_01,
D15 = GPIO_AD_B0_00,

A0 = GPIO_AD_B1_10,
A1 = GPIO_AD_B1_11,
A2 = GPIO_AD_B1_04,
A3 = GPIO_AD_B1_05,
A4 = GPIO_AD_B1_01,
A5 = GPIO_AD_B1_00,

I2C_SCL = A5,
I2C_SDA = A4,
// Arduino Uno Headers
ARDUINO_UNO_D0 = GPIO_AD_B1_07,
ARDUINO_UNO_D1 = GPIO_AD_B1_06,
ARDUINO_UNO_D2 = GPIO_AD_B0_11,
ARDUINO_UNO_D3 = GPIO_AD_B1_08,
ARDUINO_UNO_D4 = GPIO_AD_B0_09,
ARDUINO_UNO_D5 = GPIO_AD_B0_10,
ARDUINO_UNO_D6 = GPIO_AD_B1_02,
ARDUINO_UNO_D7 = GPIO_AD_B1_03,
ARDUINO_UNO_D8 = GPIO_AD_B0_03,
ARDUINO_UNO_D9 = GPIO_AD_B0_02,
ARDUINO_UNO_D10 = GPIO_SD_B0_01,
ARDUINO_UNO_D11 = GPIO_SD_B0_02,
ARDUINO_UNO_D12 = GPIO_SD_B0_03,
ARDUINO_UNO_D13 = GPIO_SD_B0_00,
ARDUINO_UNO_D14 = GPIO_AD_B0_01,
ARDUINO_UNO_D15 = GPIO_AD_B0_00,

ARDUINO_UNO_A0 = GPIO_AD_B1_10,
ARDUINO_UNO_A1 = GPIO_AD_B1_11,
ARDUINO_UNO_A2 = GPIO_AD_B1_04,
ARDUINO_UNO_A3 = GPIO_AD_B1_05,
ARDUINO_UNO_A4 = GPIO_AD_B1_01,
ARDUINO_UNO_A5 = GPIO_AD_B1_00,

// Not connected
NC = (int)0xFFFFFFFF
} PinName;

// Standardized LED and button names
#define LED1 GPIO_AD_B0_09 // USER LED (green)
#define USER_LED LED1

typedef enum {
PullNone = 0,
Expand Down
2 changes: 1 addition & 1 deletion targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4303,7 +4303,7 @@
},
"MIMXRT1050_EVK": {
"supported_form_factors": [
"ARDUINO"
"ARDUINO_UNO"
],
"core": "Cortex-M7FD",
"supported_toolchains": [
Expand Down