diff --git a/boards/nucleo-l1/include/periph_conf.h b/boards/nucleo-l1/include/periph_conf.h index fa0b85f63b5fcf243edaca30f189605ac52c7bd7..aa18c55360f3a4a3ae294edcc0b32716faf4ff68 100644 --- a/boards/nucleo-l1/include/periph_conf.h +++ b/boards/nucleo-l1/include/periph_conf.h @@ -72,11 +72,9 @@ static const timer_conf_t timer_config[] = { #define UART_0_ISR isr_usart2 #define UART_0_BUS_FREQ 32000000 /* UART 0 pin configuration */ -#define UART_0_PORT GPIOA -#define UART_0_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOAEN) -#define UART_0_RX_PIN 3 -#define UART_0_TX_PIN 2 -#define UART_0_AF 7 +#define UART_0_RX_PIN GPIO(PORT_A, 3) +#define UART_0_TX_PIN GPIO(PORT_A, 2) +#define UART_0_AF GPIO_AF7 /** * @brief GPIO configuration diff --git a/cpu/stm32l1/include/periph_cpu.h b/cpu/stm32l1/include/periph_cpu.h index 3bbb5603cb93f8580ead73b4caf2b00ca045c687..a5507a76e1ddc4f89f9491d61b5bbf0d106332be 100644 --- a/cpu/stm32l1/include/periph_cpu.h +++ b/cpu/stm32l1/include/periph_cpu.h @@ -81,7 +81,6 @@ typedef enum { } gpio_af_t; /** - * @brief Configure the alternate function for the given pin * * @note This is meant for internal use in STM32L1 peripheral drivers only diff --git a/cpu/stm32l1/periph/uart.c b/cpu/stm32l1/periph/uart.c index bcda613fba2567629dbb542cf679393356d56a43..a73c6253d5c25b77feadaf739b0b01c3e8f92419 100644 --- a/cpu/stm32l1/periph/uart.c +++ b/cpu/stm32l1/periph/uart.c @@ -99,7 +99,6 @@ int uart_init_blocking(uart_t uart, uint32_t baudrate) gpio_t rx_pin = 0; gpio_af_t af = 0; float clk = 0; - float divider; uint16_t mantissa; uint8_t fraction;