Skip to content

Commit 5e50e3b

Browse files
jeromecoutantgpsimenos
authored andcommitted
[STD-PIN] enable "ARDUINO_UNO" for B_L4S5I_IOT01A
1 parent eca714c commit 5e50e3b

File tree

2 files changed

+27
-37
lines changed

2 files changed

+27
-37
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4S5xI/TARGET_B_L4S5I_IOT01A/PinNames.h

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -157,30 +157,32 @@ typedef enum {
157157
ADC_VREF = 0xF1, // Internal pin virtual value
158158
ADC_VBAT = 0xF2, // Internal pin virtual value
159159

160-
// Arduino Uno(Rev3) Header pin connection naming
161-
A0 = PC_5,
162-
A1 = PC_4,
163-
A2 = PC_3,
164-
A3 = PC_2,
165-
A4 = PC_1,
166-
A5 = PC_0,
167-
D0 = PA_1,
168-
D1 = PA_0,
169-
D2 = PD_14,
170-
D3 = PB_0,
171-
D4 = PA_3,
172-
D5 = PB_4,
173-
D6 = PB_1,
174-
D7 = PA_4,
175-
D8 = PB_2,
176-
D9 = PA_15,
177-
D10= PA_2,
178-
D11= PA_7,
179-
D12= PA_6,
180-
D13= PA_5,
181-
D14= PB_9,
182-
D15= PB_8,
183-
160+
#ifdef TARGET_FF_ARDUINO_UNO
161+
// Arduino Uno (Rev3) pin
162+
ARDUINO_UNO_A0 = PC_5,
163+
ARDUINO_UNO_A1 = PC_4,
164+
ARDUINO_UNO_A2 = PC_3,
165+
ARDUINO_UNO_A3 = PC_2,
166+
ARDUINO_UNO_A4 = PC_1,
167+
ARDUINO_UNO_A5 = PC_0,
168+
ARDUINO_UNO_D0 = PA_1,
169+
ARDUINO_UNO_D1 = PA_0,
170+
ARDUINO_UNO_D2 = PD_14,
171+
ARDUINO_UNO_D3 = PB_0,
172+
ARDUINO_UNO_D4 = PA_3,
173+
ARDUINO_UNO_D5 = PB_4,
174+
ARDUINO_UNO_D6 = PB_1,
175+
ARDUINO_UNO_D7 = PA_4,
176+
ARDUINO_UNO_D8 = PB_2,
177+
ARDUINO_UNO_D9 = PA_15,
178+
ARDUINO_UNO_D10 = PA_2,
179+
ARDUINO_UNO_D11 = PA_7,
180+
ARDUINO_UNO_D12 = PA_6,
181+
ARDUINO_UNO_D13 = PA_5,
182+
ARDUINO_UNO_D14 = PB_9,
183+
ARDUINO_UNO_D15 = PB_8,
184+
#endif
185+
184186
// STDIO for console print
185187
#ifdef MBED_CONF_TARGET_STDIO_UART_TX
186188
USBTX = MBED_CONF_TARGET_STDIO_UART_TX,
@@ -193,18 +195,6 @@ typedef enum {
193195
USBRX = PB_7,
194196
#endif
195197

196-
// I2C signals aliases
197-
I2C_SDA = D14,
198-
I2C_SCL = D15,
199-
200-
// SPI signals aliases
201-
SPI_CS = D10,
202-
SPI_MOSI = D11,
203-
SPI_MISO = D12,
204-
SPI_SCK = D13,
205-
206-
PWM_OUT = D3,
207-
208198
/**** USB FS pins ****/
209199
USB_OTG_FS_DM = PA_11,
210200
USB_OTG_FS_DP = PA_12,

targets/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4007,7 +4007,7 @@
40074007
"QSPIF"
40084008
],
40094009
"supported_form_factors": [
4010-
"ARDUINO",
4010+
"ARDUINO_UNO",
40114011
"PMOD"
40124012
],
40134013
"extra_labels_add": [

0 commit comments

Comments
 (0)