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