From c85e417b5c282da0459a9c1ee947cf55909f125f Mon Sep 17 00:00:00 2001 From: PeterKietzmann Date: Tue, 1 Dec 2015 13:16:48 +0100 Subject: [PATCH] boards/limifrog-v1: fix uart configuration in periph_conf --- boards/limifrog-v1/include/periph_conf.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/boards/limifrog-v1/include/periph_conf.h b/boards/limifrog-v1/include/periph_conf.h index 1dc3e5d3f283..020caa4abe89 100644 --- a/boards/limifrog-v1/include/periph_conf.h +++ b/boards/limifrog-v1/include/periph_conf.h @@ -73,25 +73,23 @@ static const timer_conf_t timer_config[] = { #define UART_0_CLK (CLOCK_CORECLOCK) #define UART_0_IRQ USART3_IRQn #define UART_0_ISR isr_usart3 +#define UART_0_BUS_FREQ 32000000 /* UART 0 pin configuration */ -#define UART_0_PORT GPIOC -#define UART_0_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOCEN) -#define UART_0_RX_PIN 11 -#define UART_0_TX_PIN 10 -#define UART_0_AF 7 +#define UART_0_RX_PIN GPIO_PIN(PORT_C, 11) +#define UART_0_TX_PIN GPIO_PIN(PORT_C, 10) +#define UART_0_AF GPIO_AF7 /* UART 1 device configuration */ -#define UART_1_DEV USART3 /* Panasonic PAN1740 BLE module */ +#define UART_1_DEV USART1 /* Panasonic PAN1740 BLE module */ #define UART_1_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_USART1EN) #define UART_1_CLK (CLOCK_CORECLOCK) #define UART_1_IRQ USART1_IRQn #define UART_1_ISR isr_usart1 +#define UART_0_BUS_FREQ 32000000 /* UART 1 pin configuration */ -#define UART_1_PORT GPIOA -#define UART_1_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOAEN) -#define UART_1_RX_PIN 10 -#define UART_1_TX_PIN 9 -#define UART_1_AF 7 +#define UART_1_RX_PIN GPIO_PIN(PORT_A, 10) +#define UART_1_TX_PIN GPIO_PIN(PORT_A, 9) +#define UART_1_AF GPIO_AF7 /** @} */ /**