Skip to content

Realtek RTL8195AM A3 fix #5611

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

Merged
merged 1 commit into from
Nov 30, 2017
Merged
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
55 changes: 29 additions & 26 deletions targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ typedef enum {
PIN_OUTPUT
} PinDirection;


typedef enum {
PA_0 = (PORT_A<<4|0),
PA_1 = (PORT_A<<4|1),
Expand Down Expand Up @@ -158,21 +159,45 @@ typedef enum {
PK_5 = (PORT_K<<4|5),
PK_6 = (PORT_K<<4|6),
/* unavailable pins */
// PK_7 = (PORT_K<<4|7),
// PK_7 = (PORT_K<<4|7),

AD_1 = (PORT_V<<4|1),
AD_2 = (PORT_V<<4|2),
AD_3 = (PORT_V<<4|3),

DA_0 = (PORT_U<<4|0),
DA_1 = (PORT_U<<4|1),


// Not connected
NC = (uint32_t)0xFFFFFFFF,

// Generic signals namings
/* LED1~4 are defined as alias of GPIO pins, they are not the LEDs on board*/
LED1 = PB_4,
LED2 = PB_5,
LED3 = PB_6,
LED4 = PB_7,
SERIAL_TX = PA_7,
SERIAL_RX = PA_6,
USBTX = PB_0,
USBRX = PB_1,
I2C_SCL = PC_5,
I2C_SDA = PC_4,
SPI_MOSI = PC_2,
SPI_MISO = PC_3,
SPI_SCK = PC_1,
SPI_CS = PC_0,
PWM_OUT = PD_4,

// Arduino connector namings

A0 = AD_2,//A0 and A1 are connected
A1 = AD_2,
A2 = AD_3,

A3 = NC,
A4 = NC,
A5 = NC,

D0 = PA_6,
D1 = PA_7,
D2 = PA_5,
Expand All @@ -189,32 +214,10 @@ typedef enum {
D13 = PC_1,
D14 = PB_3,
D15 = PB_2,

D16 = PA_1,
D17 = PA_0,
D18 = PE_5,

D18 = PE_5

// Generic signals namings
/* LED1~4 are defined as alias of GPIO pins, they are not the LEDs on board*/
LED1 = PB_4,
LED2 = PB_5,
LED3 = PB_6,
LED4 = PB_7,
SERIAL_TX = PA_7,
SERIAL_RX = PA_6,
USBTX = PB_0,
USBRX = PB_1,
I2C_SCL = PC_5,
I2C_SDA = PC_4,
SPI_MOSI = PC_2,
SPI_MISO = PC_3,
SPI_SCK = PC_1,
SPI_CS = PC_0,
PWM_OUT = PD_4,

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

typedef enum {
Expand Down