cfg_com.h

来自「linux 多串口测试程序」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef CFG_COM_H_#define CFG_COM_H_#include <stdio.h>//#include <string.h>//#include <stdlib.h>#include <unistd.h>#include <fcntl.h>#include <termios.h>//#include <time.h>typedef    unsigned char    BOOLEAN;            //布尔变量     typedef    unsigned char    BOOL;                   //布尔变量        typedef    unsigned char    INT8U;                  //无符号8位整形变量                     typedef    signed   char       INT8S;                   //有符号8位整形变量                                     typedef    unsigned short   INT16U;                 //无符号16位整形变量              typedef    signed   short     INT16S;                   //有符号16位整形变量                                         typedef    unsigned int       INT32U;                   //无符号32位整形变量                                  typedef    signed   int       	 INT32S;                    //有符号32位整形变量                                  typedef    float              		 FP32;                      //单精度浮点数32位长typedef    double             	 FP64;                      //双精度浮点数#define SUCCESS            0#define FAILED              -1#define FALSE                0#define TRUE                 1#include "../inc/ComPort.h"#endif /*CFG_COM_H_*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?