Skip to content

Commit 7310f73

Browse files
committed
Add Arduino pins
1 parent 58ecad7 commit 7310f73

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/PinNames.h

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,42 @@ typedef enum {
163163

164164
DA_0 = (PORT_U<<4|0),
165165
DA_1 = (PORT_U<<4|1),
166+
167+
// Arduino connector namings
168+
169+
A0 = AD_2,//A0 and A1 are connected
170+
A1 = AD_2,
171+
A2 = AD_3,
172+
173+
D0 = PA_6,
174+
D1 = PA_7,
175+
D2 = PA_5,
176+
D3 = PD_4,
177+
D4 = PD_5,
178+
D5 = PA_4,
179+
D6 = PA_3,
180+
D7 = PA_2,
181+
D8 = PB_4,
182+
D9 = PB_5,
183+
D10 = PC_0,
184+
D11 = PC_2,
185+
D12 = PC_3,
186+
D13 = PC_1,
187+
D14 = PB_3,
188+
D15 = PB_2,
189+
190+
D16 = PA_1,
191+
D17 = PA_0,
192+
D18 = PE_1,
193+
D19 = PE_5,
194+
166195

167196
// Generic signals namings
197+
168198
LED1 = PB_4,
169199
LED2 = PB_5,
170200
LED3 = PB_6,
171201
LED4 = PB_7,
172-
USER_BUTTON = PA_3,
173202
SERIAL_TX = PA_7,
174203
SERIAL_RX = PA_6,
175204
USBTX = PB_0, //PA_7

targets/targets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,6 +2637,7 @@
26372637
"extra_labels": ["ublox", "HI2110", "SARA_NBIOT"]
26382638
},
26392639
"REALTEK_RTL8195AM": {
2640+
"supported_form_factors": ["ARDUINO"],
26402641
"core": "Cortex-M3",
26412642
"default_toolchain": "GCC_ARM",
26422643
"inherits": ["Target"],

0 commit comments

Comments
 (0)