uart5.h
438 Bytes
#ifndef __UART5_H
#define __UART5_H
#include "stdint.h"
#include "uart.h"
extern Uart_Type u5;
#define U5_BAUDRETE 115200
typedef enum
{
RS485_WRITE = 0,
RS485_READ
}Rs485_Txrx_Type;
void uart5_send_byte(uint8_t one_byte);
void uart5_send_bytes(uint8_t* buf,uint16_t length);
void uart5_rx_reset(void);
void uart5_rx_receiving(void);
void uart5_rx_finished(void);
void uart5_init(void);
uint8_t uart5_read_byte(uint8_t* c);
#endif