mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/frdm-k22f: Add second UART to config
This PR adds a second uart on two non-conflicting pins. Since the first UART is used for shell this allows a usable UART.
This commit is contained in:
parent
b6abbad6fb
commit
97e84f816c
@ -114,9 +114,23 @@ static const uart_conf_t uart_config[] = {
|
||||
.mode = UART_MODE_8N1,
|
||||
.type = KINETIS_UART,
|
||||
},
|
||||
{
|
||||
.dev = UART0,
|
||||
.freq = CLOCK_CORECLOCK,
|
||||
.pin_rx = GPIO_PIN(PORT_D, 6),
|
||||
.pin_tx = GPIO_PIN(PORT_D, 7),
|
||||
.pcr_rx = PORT_PCR_MUX(3),
|
||||
.pcr_tx = PORT_PCR_MUX(3),
|
||||
.irqn = UART0_RX_TX_IRQn,
|
||||
.scgc_addr = &SIM->SCGC4,
|
||||
.scgc_bit = SIM_SCGC4_UART0_SHIFT,
|
||||
.mode = UART_MODE_8N1,
|
||||
.type = KINETIS_UART,
|
||||
},
|
||||
};
|
||||
|
||||
#define UART_0_ISR (isr_uart1_rx_tx)
|
||||
#define UART_1_ISR (isr_uart0_rx_tx)
|
||||
|
||||
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user