Skip to content

Commit 47c8855

Browse files
authored
Merge pull request #9227 from heejungPark/master
[SDT64B] changed UART0 to UART2, added UART_5 on SDT64B
2 parents 5a2469d + c314927 commit 47c8855

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_SDT64B/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ typedef enum {
3232
UART_2 = 2,
3333
UART_3 = 3,
3434
UART_4 = 4,
35+
UART_5 = 5,
3536
} UARTName;
3637

3738
#define STDIO_UART_TX USBTX

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_SDT64B/PeripheralPins.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ const PinMap PinMap_UART_TX[] = {
9494
{PTE24, UART_4, 3},
9595
{PTE4 , UART_3, 3},
9696
{PTE0, UART_1, 3},
97+
{PTE0, UART_1, 3},
98+
{PTD9, UART_5, 3},
9799
{NC , NC , 0}
98100
};
99101

@@ -109,6 +111,7 @@ const PinMap PinMap_UART_RX[] = {
109111
{PTC14, UART_4, 3},
110112
{PTD2 , UART_2, 3},
111113
{PTD6 , UART_0, 3},
114+
{PTD8, UART_5, 3},
112115
{NC , NC , 0}
113116
};
114117

@@ -126,6 +129,7 @@ const PinMap PinMap_UART_CTS[] = {
126129
{PTC19, UART_3, 3},
127130
{PTD1 , UART_2, 3},
128131
{PTD5 , UART_0, 3},
132+
{PTD11, UART_5, 3},
129133
{NC , NC , 0}
130134
};
131135

@@ -143,6 +147,7 @@ const PinMap PinMap_UART_RTS[] = {
143147
{PTD4 , UART_0, 3},
144148
{PTA3 , UART_0, 2},
145149
{PTB2 , UART_0, 3},
150+
{PTD10, UART_5, 3},
146151
{NC , NC , 0}
147152
};
148153

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_SDT64B/PinNames.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,20 @@ typedef enum {
228228
USBRX = PTC14,
229229

230230
// UART pins
231-
UART0_RX = PTD8,
232-
UART0_TX = PTD9,
233-
UART0_CTS = PTD11,
234-
UART0_RTS = PTD10,
231+
UART0_RX = PTC16,
232+
UART0_TX = PTC17,
233+
UART0_CTS = PTC19,
234+
UART0_RTS = PTC18,
235235

236236
UART1_RX = USBRX,
237237
UART1_TX = USBTX,
238238
UART1_CTS = PTC13,
239239
UART1_RTS = PTC12,
240240

241-
UART2_RX = PTC16,
242-
UART2_TX = PTC17,
243-
UART2_CTS = PTC19,
244-
UART2_RTS = PTC18,
241+
UART2_RX = PTD8,
242+
UART2_TX = PTD9,
243+
UART2_CTS = PTD11,
244+
UART2_RTS = PTD10,
245245

246246
// I2C pins
247247
I2C0_SCL = PTC10,

0 commit comments

Comments
 (0)