📄 serial.h
字号:
#include "common.h"
//================================================================================
// 全局定义
#ifndef __serProc_H__
#define __serProc_H__
#endif
//================================================================================
// 全局 & 局部 通用定义
#ifdef __serProc_C__
#define __serProc_Ext__
#else
#define __serProc_Ext__ extern
#endif
//---------------- Variable Declare ----------------
//---------------- Function Declare ----------------
__serProc_Ext__ void serialIni();
__serProc_Ext__ void serSendByte(U8 d);
__serProc_Ext__ bit serReadByte(U8 *d);
__serProc_Ext__ void serCommand();
//================================================================================
// 私有定义
#ifdef __serProc_C__
//---------------- Variable Declare ----------------
U8 xdata serInBuf[8],serOutBuf[8];
U8 xdata pserIn,pserOut,pserInCnt,pserOutCnt;
//---------------- Function Declare ----------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -