⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 key.h

📁 uclinux底下的按键驱动 本人已经调试通过
💻 H
字号:
/****************************************Copyright (c)****************************************************                               FREE****--------------File Info-------------------------------------------------------------------------------** File Name: config.h** Last modified Date:  2006-9-9** Last Version: 1.0** Descriptions: User Configurable File****------------------------------------------------------------------------------------------------------** Created By: ZLG CHENMINGJI** Created date:   2006-9-9** Version: 1.0** Descriptions: First version****------------------------------------------------------------------------------------------------------** Modified by:MAMAJINCO** Modified date:2006-9-9** Version:1.0** Descriptions:在此忠心感谢ZLG的模版 我的高质量编程意识起源于此**********************************************************************************************************///防止重复包含此文件而设置的宏#ifndef __CONFIG_H#define __CONFIG_H//#ifndef TRUE#define TRUE  1#endif#ifndef FALSE#define FALSE 0#endif//包含必要的头文件#include <linux/config.h>#include <linux/module.h>       //模块必须包含的头文件#include<linux/init.h>           //包含module_init(),module_exit()等#include <linux/kernel.h>       /* printk() */#include<linux/sched.h>     #include <linux/fs.h>           /* 很重要 其中包含了如file_opration等结构 此结构用于文件层接口 */#include <linux/errno.h>        /* error codes */#include <asm/uaccess.h>#include <linux/types.h>#include <linux/mm.h>#include <asm/arch/s3c44b0x.h>#include <asm/io.h>#include <linux/proc_fs.h>#include <linux/fcntl.h>        /* O_ACCMODE */#include <asm/system.h>         /* cli(), *_flags */#include <asm/uaccess.h>/********************************//*Application Program Configurations*//*     应用程序配置             *//********************************///以下根据需要改动//定义主设备号 设备名称 #define KEY_MAJOR_NR	232 //231~239 240~255都可以#define DEVICE_NAME	"key"               /* name for messaging *///#define SET_LED_OFF	0//#define SET_LED_ON	1#endif/***********************************************************************************************************                            End Of File********************************************************************************************************/

⌨️ 快捷键说明

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