Skip to content
Snippets Groups Projects
Commit 351a6dee authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

boards/nucleo-f072: add extra UART

parent 9f39f5fb
No related branches found
No related tags found
No related merge requests found
...@@ -95,17 +95,28 @@ static const uart_conf_t uart_config[] = { ...@@ -95,17 +95,28 @@ static const uart_conf_t uart_config[] = {
{ {
.dev = USART1, .dev = USART1,
.rcc_mask = RCC_APB2ENR_USART1EN, .rcc_mask = RCC_APB2ENR_USART1EN,
.rx_pin = GPIO_PIN(PORT_B, 7), .rx_pin = GPIO_PIN(PORT_A, 10),
.tx_pin = GPIO_PIN(PORT_B, 6), .tx_pin = GPIO_PIN(PORT_A, 9),
.rx_af = GPIO_AF0, .rx_af = GPIO_AF1,
.tx_af = GPIO_AF0, .tx_af = GPIO_AF1,
.bus = APB2, .bus = APB2,
.irqn = USART1_IRQn .irqn = USART1_IRQn
},
{
.dev = USART3,
.rcc_mask = RCC_APB1ENR_USART3EN,
.rx_pin = GPIO_PIN(PORT_C, 11),
.tx_pin = GPIO_PIN(PORT_C, 10),
.rx_af = GPIO_AF1,
.tx_af = GPIO_AF1,
.bus = APB1,
.irqn = USART3_8_IRQn
} }
}; };
#define UART_0_ISR (isr_usart2) #define UART_0_ISR (isr_usart2)
#define UART_1_ISR (isr_usart1) #define UART_1_ISR (isr_usart1)
#define UART_2_ISR (isr_usart3_8)
#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.
Please register or to comment