Files
Gamble/MPU6050/APP/usart1.h
2023-12-18 14:36:22 +08:00

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