没有合适的资源?快使用搜索试试~ 我知道了~
以输入子系统实现的按键驱动

温馨提示
以输入子系统实现的按键驱动 以输入子系统实现的按键驱动 以输入子系统实现的按键驱动 以输入子系统实现的按键驱动
资源推荐
资源详情
资源评论
















以输入子系统实现的按键驱动
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org>
* Samsung S3C2410 keyboard support
*
* Based on various pxa ipaq drivers.
*
* ChangeLog
*
* 2005-07-24: Arnaud Patard <arnaud.patard@rtp-net.org>
* - Added key repeat
*
* 2005-07-23: Arnaud Patard <arnaud.patard@rtp-net.org>
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org>
* Samsung S3C2410 keyboard support
*
* Based on various pxa ipaq drivers.
*
* ChangeLog
*
* 2005-07-24: Arnaud Patard <arnaud.patard@rtp-net.org>
* - Added key repeat
*
* 2005-07-23: Arnaud Patard <arnaud.patard@rtp-net.org>
* - Renamed all kbd occurences to something like buttons
* - Added debounce (specially usefull for iPAQ power button)
*
* 2005-06-21: Arnaud Patard <arnaud.patard@rtp-net.org>
* - Initial version
*
*/
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/arch/regs-gpio.h>
/* For id.version */
#define S3C2410BUTVERSION 0x0001
#define DRV_NAME "s3c2410-buttons"
#define REPEAT_DELAY HZ/10
#ifdef DEBUG
* - Added debounce (specially usefull for iPAQ power button)
*
* 2005-06-21: Arnaud Patard <arnaud.patard@rtp-net.org>
* - Initial version
*
*/
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/arch/regs-gpio.h>
/* For id.version */
#define S3C2410BUTVERSION 0x0001
#define DRV_NAME "s3c2410-buttons"
#define REPEAT_DELAY HZ/10
#ifdef DEBUG
剩余7页未读,继续阅读
资源评论

- zjw_1123582014-05-25不错啊 ~~对新手来说很有用!!
- root__linux2014-05-12可以,挺好的,很不错的代码
- zmdcn19892012-06-13还行,不是很稳定

tjx163
- 粉丝: 18
- 资源: 392
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
