#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 float error; extern u8 USART_RX_BUF[64]; //接收到的数据长度 extern unsigned short USART_RX_STA; //接收状态标志 void usart1_Init(u32 bound); #endif