Skip to content

EFM32: add UART and LEUART for EFM32GG11 #12280

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 1 commit into from
Jan 21, 2020
Merged
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 @@ -452,10 +452,32 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
#endif
{NC , NC , NC}
};
#endif

#if DEVICE_SERIAL
/************UART**************/
MBED_WEAK const PinMap PinMap_UART_TX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF6, UART_0, 0},
{PE0, UART_0, 1},
{PA3, UART_0, 2},
{PC14, UART_0, 3},
{PC4, UART_0, 4},
{PF1, UART_0, 5},
{PD7, UART_0, 6},
#endif
#ifdef UART1_BASE
/* UART1 */
{PC12, UART_1, 0},
{PF10, UART_1, 1},
{PB9, UART_1, 2},
{PE2, UART_1, 3},
{PE12, UART_1, 4},
{PH11, UART_1, 5},
#endif
#ifdef USART0_BASE
/* USART0 */
{PE10, USART_0, 0},
{PE7, USART_0, 1},
{PC11, USART_0, 2},
Expand Down Expand Up @@ -506,14 +528,50 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
{PA6, USART_5, 1},
{PF15, USART_5, 2},
{PH10, USART_5, 3},
#endif
#ifdef LEUART0_BASE
/* LEUART0 */
{PD4, LEUART_0, 0},
{PB13, LEUART_0, 1},
{PE14, LEUART_0, 2},
{PF0, LEUART_0, 3},
{PF2, LEUART_0, 4},
{PC14, LEUART_0, 5},
#endif
#ifdef LEUART1_BASE
/* LEUART1 */
{PC6, LEUART_1, 0},
{PA5, LEUART_1, 1},
{PD2, LEUART_1, 2},
{PB0, LEUART_1, 3},
{PB4, LEUART_1, 4},
{PH0, LEUART_1, 5},
#endif
{NC , NC , NC}
};
#endif

#if DEVICE_SERIAL
MBED_WEAK const PinMap PinMap_UART_RX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF7, UART_0, 0},
{PE1, UART_0, 1},
{PA4, UART_0, 2},
{PC15, UART_0, 3},
{PC5, UART_0, 4},
{PF2, UART_0, 5},
{PE4, UART_0, 6},
#endif
#ifdef UART1_BASE
/* UART1 */
{PC13, UART_1, 0},
{PF11, UART_1, 1},
{PB10, UART_1, 2},
{PE3, UART_1, 3},
{PE13, UART_1, 4},
{PH12, UART_1, 5},
#endif
#ifdef USART0_BASE
/* USART0 */
{PE11, USART_0, 0},
{PE6, USART_0, 1},
{PC10, USART_0, 2},
Expand Down Expand Up @@ -564,6 +622,24 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
{PA7, USART_5, 1},
{PB1, USART_5, 2},
{PH11, USART_5, 3},
#endif
#ifdef LEUART0_BASE
/* LEUART0 */
{PD5, LEUART_0, 0},
{PB14, LEUART_0, 1},
{PE15, LEUART_0, 2},
{PF1, LEUART_0, 3},
{PA0, LEUART_0, 4},
{PC15, LEUART_0, 5},
#endif
#ifdef LEUART1_BASE
/* LEUART1 */
{PC7, LEUART_1, 0},
{PA6, LEUART_1, 1},
{PD3, LEUART_1, 2},
{PB1, LEUART_1, 3},
{PB5, LEUART_1, 4},
{PH1, LEUART_1, 5},
#endif
{NC , NC , NC}
};
Expand Down