1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
| #ifndef __USART_H__
| #define __USART_H__
|
| #include "stm32f10x.h"
|
| #define USART_TX_pin GPIO_Pin_9
| #define USART_RX_pin GPIO_Pin_10
| #define USART_GPIO GPIOA
| #define EXT_USART USART1
|
| #define BAUD_RATE 115200
|
|
| void Usart_Init(void);
|
| #endif
|
|