You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
476 B

#ifndef _UART_H_
#define _UART_H_
#include "hic.h"
#include "basic_type.h"
#define IT_SR //中断发送接收,注释此宏定义则使用查询方式发送接收
void uart0_config(void);
void uart0_send_byte(char data);//向串口发送一个字节
void uart0_send_buff(char *data);//向串口发送字符串
void uart1_config(void);
void urat1_send_byte(char data);
void uart1_send_buff(char *data);
void urat0_text(void);//串口测试函数
#endif