📄 serial.h
字号:
/*
*********************************************************************************************************
* uC/OS-II
* 实时内核
*
* (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
* 版权所有
*
* MCU-51 专用代码
* KEIL C51大模式编译
*
* 文件名 : SERIAL.H
* 作者 : Jean J. Labrosse
* 改编 : 田江学 福华先进微电子上海有限公司 03/28/2005 (参考于杨屹大侠) www.fameg.com
*********************************************************************************************************
*/
void InitSerial() reentrant;//串口初始化
void InitSerialBuffer(void) reentrant;//串口缓冲区初始化
void PrintChar(unsigned char ch) reentrant;//显示字符
void PrintStr(unsigned char *str) reentrant;//显示字符串
void clrscr() reentrant;//清屏
void serial(void) reentrant;//串口中断服务子程序
//收发缓冲区长度
#define LenTxBuf 400 //Don't too small,because it will cause display abnormal.
#define LenRxBuf 50
#define MaxLenStr 60 //buf[MaxLenStr+1] for '\0'
#define TABNum 4 //TAB键移动长度
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -