Skip to content

Commit 791343a

Browse files
author
Janne Kiiskilä
committed
Realtek RTL8195AM - define A3-A5 as NC
Based on the Mbed OS website the A3 is connected to "DAC", however there is no define for DAC. In order to get the Realtek RTL8195AM to even compile with mbed-os-example-client now, we must have the A3 defined - it is one of the standard Arduine header pins. Therefore, setting it as NC. A4-A5 are not connected either, so adding them as "NC" as well. Realtek will hopefully push a proper fix sooner or later, if there is a more meaningful define for the A3 pin. They do state however that the A0-A3 pins are not GPIO capable anyway. Ref: https://os.mbed.com/platforms/Realtek-RTL8195AM/
1 parent 70e7b40 commit 791343a

File tree

1 file changed

+29
-26
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A

1 file changed

+29
-26
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/PinNames.h

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef enum {
5050
PIN_OUTPUT
5151
} PinDirection;
5252

53+
5354
typedef enum {
5455
PA_0 = (PORT_A<<4|0),
5556
PA_1 = (PORT_A<<4|1),
@@ -158,21 +159,45 @@ typedef enum {
158159
PK_5 = (PORT_K<<4|5),
159160
PK_6 = (PORT_K<<4|6),
160161
/* unavailable pins */
161-
// PK_7 = (PORT_K<<4|7),
162+
// PK_7 = (PORT_K<<4|7),
162163

163164
AD_1 = (PORT_V<<4|1),
164165
AD_2 = (PORT_V<<4|2),
165166
AD_3 = (PORT_V<<4|3),
166167

167168
DA_0 = (PORT_U<<4|0),
168169
DA_1 = (PORT_U<<4|1),
169-
170+
171+
// Not connected
172+
NC = (uint32_t)0xFFFFFFFF,
173+
174+
// Generic signals namings
175+
/* LED1~4 are defined as alias of GPIO pins, they are not the LEDs on board*/
176+
LED1 = PB_4,
177+
LED2 = PB_5,
178+
LED3 = PB_6,
179+
LED4 = PB_7,
180+
SERIAL_TX = PA_7,
181+
SERIAL_RX = PA_6,
182+
USBTX = PB_0,
183+
USBRX = PB_1,
184+
I2C_SCL = PC_5,
185+
I2C_SDA = PC_4,
186+
SPI_MOSI = PC_2,
187+
SPI_MISO = PC_3,
188+
SPI_SCK = PC_1,
189+
SPI_CS = PC_0,
190+
PWM_OUT = PD_4,
191+
170192
// Arduino connector namings
171193

172194
A0 = AD_2,//A0 and A1 are connected
173195
A1 = AD_2,
174196
A2 = AD_3,
175-
197+
A3 = NC,
198+
A4 = NC,
199+
A5 = NC,
200+
176201
D0 = PA_6,
177202
D1 = PA_7,
178203
D2 = PA_5,
@@ -189,32 +214,10 @@ typedef enum {
189214
D13 = PC_1,
190215
D14 = PB_3,
191216
D15 = PB_2,
192-
193217
D16 = PA_1,
194218
D17 = PA_0,
195-
D18 = PE_5,
196-
219+
D18 = PE_5
197220

198-
// Generic signals namings
199-
/* LED1~4 are defined as alias of GPIO pins, they are not the LEDs on board*/
200-
LED1 = PB_4,
201-
LED2 = PB_5,
202-
LED3 = PB_6,
203-
LED4 = PB_7,
204-
SERIAL_TX = PA_7,
205-
SERIAL_RX = PA_6,
206-
USBTX = PB_0,
207-
USBRX = PB_1,
208-
I2C_SCL = PC_5,
209-
I2C_SDA = PC_4,
210-
SPI_MOSI = PC_2,
211-
SPI_MISO = PC_3,
212-
SPI_SCK = PC_1,
213-
SPI_CS = PC_0,
214-
PWM_OUT = PD_4,
215-
216-
// Not connected
217-
NC = (uint32_t)0xFFFFFFFF
218221
} PinName;
219222

220223
typedef enum {

0 commit comments

Comments
 (0)