From 351a6dee53d206f098918daea57f6df2cce77cbb Mon Sep 17 00:00:00 2001 From: Alexandre Abadie <alexandre.abadie@inria.fr> Date: Mon, 23 Jan 2017 13:56:52 +0100 Subject: [PATCH] boards/nucleo-f072: add extra UART --- boards/nucleo-f072/include/periph_conf.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/boards/nucleo-f072/include/periph_conf.h b/boards/nucleo-f072/include/periph_conf.h index ed3d38e140..5bf6742b7c 100644 --- a/boards/nucleo-f072/include/periph_conf.h +++ b/boards/nucleo-f072/include/periph_conf.h @@ -95,17 +95,28 @@ static const uart_conf_t uart_config[] = { { .dev = USART1, .rcc_mask = RCC_APB2ENR_USART1EN, - .rx_pin = GPIO_PIN(PORT_B, 7), - .tx_pin = GPIO_PIN(PORT_B, 6), - .rx_af = GPIO_AF0, - .tx_af = GPIO_AF0, + .rx_pin = GPIO_PIN(PORT_A, 10), + .tx_pin = GPIO_PIN(PORT_A, 9), + .rx_af = GPIO_AF1, + .tx_af = GPIO_AF1, .bus = APB2, .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_1_ISR (isr_usart1) +#define UART_2_ISR (isr_usart3_8) #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0])) /** @} */ -- GitLab