Skip to content
Snippets Groups Projects
Commit 8ce9b29a authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #7141 from Marc-Aurele/uart1-l0-impl

boards/nucleo-l073: add third UART (USART1) configuration
parents 7ce6c8f5 6a36c7d5
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,16 @@ static const uart_conf_t uart_config[] = { ...@@ -85,6 +85,16 @@ static const uart_conf_t uart_config[] = {
.bus = APB1, .bus = APB1,
.irqn = USART2_IRQn .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, .dev = USART4,
.rcc_mask = RCC_APB1ENR_USART4EN, .rcc_mask = RCC_APB1ENR_USART4EN,
...@@ -98,7 +108,8 @@ static const uart_conf_t uart_config[] = { ...@@ -98,7 +108,8 @@ static const uart_conf_t uart_config[] = {
}; };
#define UART_0_ISR (isr_usart2) #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])) #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
/** @} */ /** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment