Files
Gamble/Gambal/APP/usart1.h
2023-12-19 10:15:15 +08:00

22 lines
410 B
C

#ifndef _usart1_H
#define _usart1_H
#include "system.h"
#include "stdio.h"
#define RX_485 GPIO_ResetBits(GPIOA,GPIO_Pin_8);
#define TX_485 GPIO_SetBits(GPIOA,GPIO_Pin_8);
extern u8 USART_RX_BUF[30];
//接收到的数据长度
extern unsigned short USART_RX_STA; //接收状态标志
extern u8 G_RX_Xerror[12];
extern u8 G_RX_Yerror[12];
void usart1_Init(u32 bound);
#endif