Merge pull request #6227 from OpenNuvoton/nuvoton_compatible_pinName

Nuvoton: Add I2C & Serial Pin Name
pull/6040/merge
Anna Bridge 2018-02-28 14:15:52 +00:00 committed by GitHub
commit 8cc6d6cc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 4 deletions

View File

@ -104,13 +104,18 @@ typedef enum {
D13 = PC_5,
D14 = PE_5,
D15 = PE_4,
I2C_SCL = D15,
I2C_SDA = D14,
// FIXME: other board-specific naming
// NOTE: board-specific naming
// UART naming
USBTX = PA_8,
USBRX = PA_9,
STDIO_UART_TX = USBTX,
STDIO_UART_RX = USBRX,
SERIAL_TX = USBTX,
SERIAL_RX = USBRX,
// LED naming
LED1 = PD_2,
LED2 = PD_3,

View File

@ -105,12 +105,17 @@ typedef enum {
D14 = PG_3,
D15 = PG_2,
I2C_SCL = D15,
I2C_SDA = D14,
// Note: board-specific
// UART naming
USBTX = PD_3,
USBRX = PD_2,
STDIO_UART_TX = USBTX,
STDIO_UART_RX = USBRX,
SERIAL_TX = USBTX,
SERIAL_RX = USBRX,
// LED naming
LED_RED = PH_0,
LED_YELLOW = PH_1,

View File

@ -102,13 +102,18 @@ typedef enum {
D13 = PC_1,
D14 = PC_8,
D15 = PC_9,
I2C_SCL = D15,
I2C_SDA = D14,
// NOTE: other board-specific naming
// UART naming
USBTX = PB_1,
USBRX = PB_0,
STDIO_UART_TX = USBTX,
STDIO_UART_RX = USBRX,
SERIAL_TX = USBTX,
SERIAL_RX = USBRX,
// LED naming
LED1 = PE_11,
LED2 = PE_10,

View File

@ -107,13 +107,18 @@ typedef enum {
D13 = PD_0,
D14 = PD_12,
D15 = PD_10,
// FIXME: other board-specific naming
I2C_SCL = D15,
I2C_SDA = D14,
// NOTE: other board-specific naming
// UART naming
USBTX = PD_5,
USBRX = PD_4,
STDIO_UART_TX = USBTX,
STDIO_UART_RX = USBRX,
SERIAL_TX = USBTX,
SERIAL_RX = USBRX,
// LED naming
LED1 = PD_9,
LED2 = PA_4,