mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
boards/nucleo-l073: add third UART (USART1) configuration
UART1 definition has been added to the nucleo-l073 board definition. Signed-off-by: Aurelien Fillau <aurelien.fillau@gmail.com>
This commit is contained in:
parent
3b7252c7de
commit
6a36c7d5aa
@ -85,6 +85,16 @@ static const uart_conf_t uart_config[] = {
|
||||
.bus = APB1,
|
||||
.irqn = USART2_IRQn
|
||||
},
|
||||
{
|
||||
.dev = USART1,
|
||||
.rcc_mask = RCC_APB2ENR_USART1EN,
|
||||
.rx_pin = GPIO_PIN(PORT_A, 10),
|
||||
.tx_pin = GPIO_PIN(PORT_A, 9),
|
||||
.rx_af = GPIO_AF4,
|
||||
.tx_af = GPIO_AF4,
|
||||
.bus = APB2,
|
||||
.irqn = USART1_IRQn
|
||||
},
|
||||
{
|
||||
.dev = USART4,
|
||||
.rcc_mask = RCC_APB1ENR_USART4EN,
|
||||
@ -98,7 +108,8 @@ static const uart_conf_t uart_config[] = {
|
||||
};
|
||||
|
||||
#define UART_0_ISR (isr_usart2)
|
||||
#define UART_1_ISR (isr_usart4_5)
|
||||
#define UART_1_ISR (isr_usart1)
|
||||
#define UART_2_ISR (isr_usart4_5)
|
||||
|
||||
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user