Skip to content
Snippets Groups Projects
Commit 59c30a4e authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Changed the pins of the non-rempad serial port for the F1 family.

parent f6c9528e
No related branches found
No related tags found
No related merge requests found
......@@ -5,13 +5,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
......
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