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.

15 lines
476 B

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