?? uart.h
字號:
#ifndef _UART_H_
#define _UART_H_
#define NEWLINE {transmitByte(0x0d); transmitByte(0x0a);} /*換行,相當于"\r\n"*/
#define CLS {transmitByte(0x0c);transmitByte(0x0c);} /*0x0c為windows超級終端清屏命令,發(fā)送兩次以確保清屏*/
/*從串口接收一個字節(jié)數(shù)據(jù)*/
unsigned char receiveByte(void);
/*從串口發(fā)送一個字節(jié)數(shù)據(jù)*/
void transmitByte(unsigned char);
/*從串口發(fā)送字符串*/
void transmitString(unsigned char*);
/*以16進制格式發(fā)送一個字節(jié)數(shù)據(jù)*/
void transmitHex(unsigned char);
/*在超級終端顯示數(shù)據(jù)*/
void displayData(unsigned char *buff, unsigned int len);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -