Skip to content
Snippets Groups Projects
Commit 20fd33c9 authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

nucleo-f207: fix uart configuration init

parent 9cb73dd6
No related branches found
No related tags found
No related merge requests found
...@@ -128,8 +128,6 @@ static const timer_conf_t timer_config[TIMER_NUMOF] = { ...@@ -128,8 +128,6 @@ static const timer_conf_t timer_config[TIMER_NUMOF] = {
#define TIMER_3_ISR isr_tim4 #define TIMER_3_ISR isr_tim4
/** @} */ /** @} */
/** /**
* @brief UART configuration * @brief UART configuration
* @{ * @{
...@@ -140,10 +138,12 @@ static const uart_conf_t uart_config[] = { ...@@ -140,10 +138,12 @@ static const uart_conf_t uart_config[] = {
.rcc_mask = RCC_APB1ENR_USART3EN, .rcc_mask = RCC_APB1ENR_USART3EN,
.rx_pin = GPIO_PIN(PORT_D, 9), .rx_pin = GPIO_PIN(PORT_D, 9),
.tx_pin = GPIO_PIN(PORT_D, 8), .tx_pin = GPIO_PIN(PORT_D, 8),
.rts_pin = GPIO_PIN(PORT_D, 12),
.cts_pin = GPIO_PIN(PORT_D, 11),
.rx_mode = GPIO_IN, .rx_mode = GPIO_IN,
.tx_mode = GPIO_OUT, .tx_mode = GPIO_OUT,
.rts_pin = GPIO_PIN(PORT_D, 12),
.cts_pin = GPIO_PIN(PORT_D, 11),
.rts_mode = GPIO_OUT,
.cts_mode = GPIO_IN,
.af = GPIO_AF7, .af = GPIO_AF7,
.irqn = USART3_IRQn, .irqn = USART3_IRQn,
.dma_stream = 3, .dma_stream = 3,
...@@ -155,10 +155,10 @@ static const uart_conf_t uart_config[] = { ...@@ -155,10 +155,10 @@ static const uart_conf_t uart_config[] = {
.rcc_mask = RCC_APB1ENR_USART2EN, .rcc_mask = RCC_APB1ENR_USART2EN,
.rx_pin = GPIO_PIN(PORT_D, 6), .rx_pin = GPIO_PIN(PORT_D, 6),
.tx_pin = GPIO_PIN(PORT_D, 5), .tx_pin = GPIO_PIN(PORT_D, 5),
.rts_pin = GPIO_PIN(PORT_D, 4),
.cts_pin = GPIO_PIN(PORT_D, 3),
.rx_mode = GPIO_IN, .rx_mode = GPIO_IN,
.tx_mode = GPIO_OUT, .tx_mode = GPIO_OUT,
.rts_pin = GPIO_PIN(PORT_D, 4),
.cts_pin = GPIO_PIN(PORT_D, 3),
.rts_mode = GPIO_OUT, .rts_mode = GPIO_OUT,
.cts_mode = GPIO_IN, .cts_mode = GPIO_IN,
.af = GPIO_AF7, .af = GPIO_AF7,
...@@ -172,10 +172,10 @@ static const uart_conf_t uart_config[] = { ...@@ -172,10 +172,10 @@ static const uart_conf_t uart_config[] = {
.rcc_mask = RCC_APB2ENR_USART1EN, .rcc_mask = RCC_APB2ENR_USART1EN,
.rx_pin = GPIO_PIN(PORT_A, 10), .rx_pin = GPIO_PIN(PORT_A, 10),
.tx_pin = GPIO_PIN(PORT_A, 9), .tx_pin = GPIO_PIN(PORT_A, 9),
.rts_pin = GPIO_PIN(PORT_A, 12),
.cts_pin = GPIO_PIN(PORT_A, 11),
.rx_mode = GPIO_IN, .rx_mode = GPIO_IN,
.tx_mode = GPIO_OUT, .tx_mode = GPIO_OUT,
.rts_pin = GPIO_PIN(PORT_A, 12),
.cts_pin = GPIO_PIN(PORT_A, 11),
.rts_mode = GPIO_OUT, .rts_mode = GPIO_OUT,
.cts_mode = GPIO_IN, .cts_mode = GPIO_IN,
.af = GPIO_AF7, .af = GPIO_AF7,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment