Skip to content

Commit 8cc6d6c

Browse files
authored
Merge pull request #6227 from OpenNuvoton/nuvoton_compatible_pinName
Nuvoton: Add I2C & Serial Pin Name
2 parents 8add292 + b6ff40e commit 8cc6d6c

File tree

4 files changed

+24
-4
lines changed
  • targets/TARGET_NUVOTON

4 files changed

+24
-4
lines changed

targets/TARGET_NUVOTON/TARGET_M451/TARGET_NUMAKER_PFM_M453/PinNames.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,18 @@ typedef enum {
104104
D13 = PC_5,
105105
D14 = PE_5,
106106
D15 = PE_4,
107+
108+
I2C_SCL = D15,
109+
I2C_SDA = D14,
107110

108-
// FIXME: other board-specific naming
111+
// NOTE: board-specific naming
109112
// UART naming
110113
USBTX = PA_8,
111114
USBRX = PA_9,
112115
STDIO_UART_TX = USBTX,
113116
STDIO_UART_RX = USBRX,
117+
SERIAL_TX = USBTX,
118+
SERIAL_RX = USBRX,
114119
// LED naming
115120
LED1 = PD_2,
116121
LED2 = PD_3,

targets/TARGET_NUVOTON/TARGET_M480/TARGET_NUMAKER_PFM_M487/PinNames.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,17 @@ typedef enum {
105105
D14 = PG_3,
106106
D15 = PG_2,
107107

108+
I2C_SCL = D15,
109+
I2C_SDA = D14,
110+
108111
// Note: board-specific
109112
// UART naming
110113
USBTX = PD_3,
111114
USBRX = PD_2,
112115
STDIO_UART_TX = USBTX,
113116
STDIO_UART_RX = USBRX,
117+
SERIAL_TX = USBTX,
118+
SERIAL_RX = USBRX,
114119
// LED naming
115120
LED_RED = PH_0,
116121
LED_YELLOW = PH_1,

targets/TARGET_NUVOTON/TARGET_NANO100/TARGET_NUMAKER_PFM_NANO130/PinNames.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,18 @@ typedef enum {
102102
D13 = PC_1,
103103
D14 = PC_8,
104104
D15 = PC_9,
105-
105+
106+
I2C_SCL = D15,
107+
I2C_SDA = D14,
108+
106109
// NOTE: other board-specific naming
107110
// UART naming
108111
USBTX = PB_1,
109112
USBRX = PB_0,
110113
STDIO_UART_TX = USBTX,
111114
STDIO_UART_RX = USBRX,
115+
SERIAL_TX = USBTX,
116+
SERIAL_RX = USBRX,
112117
// LED naming
113118
LED1 = PE_11,
114119
LED2 = PE_10,

targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PinNames.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,18 @@ typedef enum {
107107
D13 = PD_0,
108108
D14 = PD_12,
109109
D15 = PD_10,
110-
111-
// FIXME: other board-specific naming
110+
111+
I2C_SCL = D15,
112+
I2C_SDA = D14,
113+
114+
// NOTE: other board-specific naming
112115
// UART naming
113116
USBTX = PD_5,
114117
USBRX = PD_4,
115118
STDIO_UART_TX = USBTX,
116119
STDIO_UART_RX = USBRX,
120+
SERIAL_TX = USBTX,
121+
SERIAL_RX = USBRX,
117122
// LED naming
118123
LED1 = PD_9,
119124
LED2 = PA_4,

0 commit comments

Comments
 (0)