mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nucleo-f401: configure a second UART using USART6 on PA11/PA12 pins
This commit is contained in:
parent
ade8bd2a17
commit
e2ec69c956
@ -92,12 +92,28 @@ static const uart_conf_t uart_config[] = {
|
||||
#ifdef UART_USE_DMA
|
||||
.dma_stream = 6,
|
||||
.dma_chan = 4
|
||||
#endif
|
||||
},
|
||||
{
|
||||
.dev = USART6,
|
||||
.rcc_mask = RCC_APB2ENR_USART6EN,
|
||||
.rx_pin = GPIO_PIN(PORT_A, 12),
|
||||
.tx_pin = GPIO_PIN(PORT_A, 11),
|
||||
.rx_af = GPIO_AF8,
|
||||
.tx_af = GPIO_AF8,
|
||||
.bus = APB2,
|
||||
.irqn = USART6_IRQn,
|
||||
#ifdef UART_USE_DMA
|
||||
.dma_stream = 6,
|
||||
.dma_chan = 4
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
#define UART_0_ISR (isr_usart2)
|
||||
#define UART_0_DMA_ISR (isr_dma1_stream6)
|
||||
#define UART_1_ISR (isr_usart6)
|
||||
#define UART_1_DMA_ISR (isr_dma1_stream6)
|
||||
|
||||
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user