common.h
来自「用于接上8255的lcd的嵌入式linux下驱动程序以及相应的测试程序」· C头文件 代码 · 共 62 行
H
62 行
/*
* FileName: command.h
* Author: casiawu Version: 1.00 Date: 2006-6-8
* Description: Common header file
* Version: 1.00
* Function List:
* 1.
* History:
* <author> <time> <version > <desc>
*/
#ifndef _COMMONHEADER_H
#define _COMMONHEADER_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <sys/file.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <linux/rtc.h>
#include <sys/shm.h>
#include <signal.h>
#include <sys/ipc.h>
#include <dirent.h>
typedef unsigned char uchar;
typedef const unsigned char cchar;
/* define parameter data struct */
typedef struct _headerlcd
{
uchar ititle[4];
uchar irtc[8];
uchar iinfo1[240];
uchar iinfo2[240];
uchar ilength1;
uchar ilength2;
}HEADER_LCD, *LHEADER_LCD;
//#undef DEBUG /* #define DEBUG 1 */
#define DEBUG 1
#ifdef DEBUG
#define DPRINTF( x... ) printf( ##x )
#else
#define DPRINTF( x... )
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?