mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Merge pull request #7141 from Marc-Aurele/uart1-l0-impl
boards/nucleo-l073: add third UART (USART1) configuration
This commit is contained in:
commit
8ce9b29add
@ -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…
x
Reference in New Issue
Block a user