Skip to content

Commit 6a6dd02

Browse files
authored
Merge pull request #10578 from ThunderSoft123/master
Modify PinName file to keep correspondence with spec
2 parents 6344b9d + a6c52d3 commit 6a6dd02

File tree

2 files changed

+25
-31
lines changed

2 files changed

+25
-31
lines changed

targets/TARGET_TT/TARGET_TT_M3HQ/PinNames.h

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ typedef enum {
6262
PV0 = 17 << 3, PV1, PV2, PV3, PV4, PV5, PV6, PV7,
6363

6464
// Other mbed Pin Names
65-
LED1 = PK4,
66-
LED2 = PK5,
67-
LED3 = PK6,
68-
LED4 = PK7,
65+
LED0 = PK4,
66+
LED1 = PK5,
67+
LED2 = PK6,
68+
LED3 = PK7,
6969

7070
// External data bus Pin Names
71-
D0 = PV7,
72-
D1 = PV6,
73-
D2 = PC4,
74-
D3 = PK2,
75-
D4 = PC3,
76-
D5 = PJ0,
77-
D6 = PN0,
71+
D0 = PG3,
72+
D1 = PG4,
73+
D2 = PG5,
74+
D3 = PG2,
75+
D4 = PG6,
76+
D5 = PA0,
77+
D6 = PL5,
7878
D7 = PL6,
7979
D8 = PT0,
8080
D9 = PP0,
@@ -85,16 +85,15 @@ typedef enum {
8585
D14 = PA5,
8686
D15 = PA4,
8787

88-
// Analogue out pins
89-
A0 = PF2,
90-
A1 = PF3,
91-
A2 = PF4,
92-
A3 = PF5,
93-
A4 = PF6,
94-
A5 = PF7,
95-
9688
DAC0 = PG0,
9789
DAC1 = PG1,
90+
// Analogue out pins
91+
A0 = PF7,
92+
A1 = PF6,
93+
A2 = PF5,
94+
A3 = PF4,
95+
A4 = PF3,
96+
A5 = PF2,
9897

9998
// DAP_UART
10099
USBTX = PJ1,
@@ -103,10 +102,8 @@ typedef enum {
103102
MBEDIF_RXD = USBRX,
104103

105104
// Switches
106-
SW1 = PV0,
107-
SW2 = PV1,
108-
SW3 = PV2,
109-
SW4 = PV3,
105+
SW2 = PV3,
106+
USER_BUTTON = PV3,
110107

111108
// I2C pins
112109
SDA = D14,

targets/TARGET_TT/TARGET_TT_M4G9/PinNames.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ typedef enum {
6060
PY0 = 19 << 3, PY1, PY2, PY3, PY4,
6161

6262
// Other mbed Pin Names
63-
LED1 = PE4,
64-
LED2 = PE5,
65-
LED3 = PE6,
66-
LED4 = PE7,
63+
LED0 = PE4,
64+
LED1 = PE5,
65+
LED2 = PE6,
66+
LED3 = PE7,
6767

6868
// External data bus Pin Names
6969
D0 = PJ0,
@@ -101,11 +101,8 @@ typedef enum {
101101
MBED_CONF_APP_UART0_RX = PE2,
102102

103103
// Switches
104+
SW2 = PL4,
104105
USER_BUTTON = PL4,
105-
SW1 = PL4,
106-
SW2 = PL5,
107-
SW3 = PV0,
108-
SW4 = PV1,
109106

110107
// I2C pins
111108
SDA = PG2,

0 commit comments

Comments
 (0)