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[20];
|
|||
|
//<2F><><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݳ<EFBFBD><DDB3><EFBFBD>
|
|||
|
extern unsigned short USART_RX_STA; //<2F><><EFBFBD><EFBFBD>״̬<D7B4><CCAC>־
|
|||
|
extern u8 x[10];
|
|||
|
extern u8 y[10];
|
|||
|
|
|||
|
void usart1_Init(u32 bound);
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|