Skip to content
Snippets Groups Projects
Commit cdcdd185 authored by Hauke Petersen's avatar Hauke Petersen Committed by Thomas Eichinger
Browse files

boards/nucleo-l1: adapted UART configuration

parent 2e84fbf8
No related branches found
No related tags found
No related merge requests found
...@@ -72,11 +72,9 @@ static const timer_conf_t timer_config[] = { ...@@ -72,11 +72,9 @@ static const timer_conf_t timer_config[] = {
#define UART_0_ISR isr_usart2 #define UART_0_ISR isr_usart2
#define UART_0_BUS_FREQ 32000000 #define UART_0_BUS_FREQ 32000000
/* UART 0 pin configuration */ /* UART 0 pin configuration */
#define UART_0_PORT GPIOA #define UART_0_RX_PIN GPIO(PORT_A, 3)
#define UART_0_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOAEN) #define UART_0_TX_PIN GPIO(PORT_A, 2)
#define UART_0_RX_PIN 3 #define UART_0_AF GPIO_AF7
#define UART_0_TX_PIN 2
#define UART_0_AF 7
/** /**
* @brief GPIO configuration * @brief GPIO configuration
......
...@@ -81,7 +81,6 @@ typedef enum { ...@@ -81,7 +81,6 @@ typedef enum {
} gpio_af_t; } gpio_af_t;
/** /**
* @brief Configure the alternate function for the given pin * @brief Configure the alternate function for the given pin
* *
* @note This is meant for internal use in STM32L1 peripheral drivers only * @note This is meant for internal use in STM32L1 peripheral drivers only
......
...@@ -99,7 +99,6 @@ int uart_init_blocking(uart_t uart, uint32_t baudrate) ...@@ -99,7 +99,6 @@ int uart_init_blocking(uart_t uart, uint32_t baudrate)
gpio_t rx_pin = 0; gpio_t rx_pin = 0;
gpio_af_t af = 0; gpio_af_t af = 0;
float clk = 0; float clk = 0;
float divider;
uint16_t mantissa; uint16_t mantissa;
uint8_t fraction; uint8_t fraction;
......
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