Skip to content

[SDT64B] changed UART0 to UART2, added UART_5 on SDT64B #9227

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 3 commits into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ typedef enum {
UART_2 = 2,
UART_3 = 3,
UART_4 = 4,
UART_5 = 5,
} UARTName;

#define STDIO_UART_TX USBTX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ const PinMap PinMap_UART_TX[] = {
{PTE24, UART_4, 3},
{PTE4 , UART_3, 3},
{PTE0, UART_1, 3},
{PTE0, UART_1, 3},
{PTD9, UART_5, 3},
{NC , NC , 0}
};

Expand All @@ -109,6 +111,7 @@ const PinMap PinMap_UART_RX[] = {
{PTC14, UART_4, 3},
{PTD2 , UART_2, 3},
{PTD6 , UART_0, 3},
{PTD8, UART_5, 3},
{NC , NC , 0}
};

Expand All @@ -126,6 +129,7 @@ const PinMap PinMap_UART_CTS[] = {
{PTC19, UART_3, 3},
{PTD1 , UART_2, 3},
{PTD5 , UART_0, 3},
{PTD11, UART_5, 3},
{NC , NC , 0}
};

Expand All @@ -143,6 +147,7 @@ const PinMap PinMap_UART_RTS[] = {
{PTD4 , UART_0, 3},
{PTA3 , UART_0, 2},
{PTB2 , UART_0, 3},
{PTD10, UART_5, 3},
{NC , NC , 0}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,20 +228,20 @@ typedef enum {
USBRX = PTC14,

// UART pins
UART0_RX = PTD8,
UART0_TX = PTD9,
UART0_CTS = PTD11,
UART0_RTS = PTD10,
UART0_RX = PTC16,
UART0_TX = PTC17,
UART0_CTS = PTC19,
UART0_RTS = PTC18,

UART1_RX = USBRX,
UART1_TX = USBTX,
UART1_CTS = PTC13,
UART1_RTS = PTC12,

UART2_RX = PTC16,
UART2_TX = PTC17,
UART2_CTS = PTC19,
UART2_RTS = PTC18,
UART2_RX = PTD8,
UART2_TX = PTD9,
UART2_CTS = PTD11,
UART2_RTS = PTD10,

// I2C pins
I2C0_SCL = PTC10,
Expand Down