From 7f522d76503ae776490ea171004b5e108642ff66 Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Tue, 29 Aug 2017 14:51:19 +0200
Subject: [PATCH] Changed the pins of the non-rempad serial port for the F1
 family.

(cherry picked from commit 59c30a4ea80d3ec942ae313cc59e44c0d2e2ea9f)
---
 f1/usart/src/usart1.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/f1/usart/src/usart1.c b/f1/usart/src/usart1.c
index 271d84e..1be5b4a 100644
--- a/f1/usart/src/usart1.c
+++ b/f1/usart/src/usart1.c
@@ -6,13 +6,13 @@
 #define     USART_IRQn               USART1_IRQn
 #define     USART_IRQHandler         USART1_IRQHandler
 
-#define     USART_TX_PIN             GPIO_PIN_6 
-#define     USART_TX_GPIO_PORT       GPIOB
-#define     USART_ENABLE_TX_GPIO_CLK __HAL_RCC_GPIOB_CLK_ENABLE()
+#define     USART_TX_PIN             GPIO_PIN_9 
+#define     USART_TX_GPIO_PORT       GPIOA
+#define     USART_ENABLE_TX_GPIO_CLK __HAL_RCC_GPIOA_CLK_ENABLE()
 
-#define     USART_RX_PIN             GPIO_PIN_7
-#define     USART_RX_GPIO_PORT       GPIOB
-#define     USART_ENABLE_RX_GPIO_CLK __HAL_RCC_GPIOB_CLK_ENABLE()
+#define     USART_RX_PIN             GPIO_PIN_10
+#define     USART_RX_GPIO_PORT       GPIOA
+#define     USART_ENABLE_RX_GPIO_CLK __HAL_RCC_GPIOA_CLK_ENABLE()
 
 /* DMA configuration */
 #define     USART_DMA                DMA1
-- 
GitLab