📄 gpio_button_smdk2410_aiji.c
字号:
/* * drivers/char/gpio_button_smdk2410.c * * button handler for SMDK-2410 * * Based on gpio_button_kings.c * * Author: Janghoon Lyu <nandy@mizi.com> * Date : $Date: 2002/10/14 11:09:47 $ * * $Revision: 1.1.2.5 $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. * * 2002-10-08: Janghoon Lyu <nandy@mizi.com> * - not tested completely */#include <linux/config.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/init.h>#include <asm/hardware.h>#include <linux/kbd_ll.h>#include <linux/irq.h>#define DEBUG#include "s3c2410_gpio_button.h"BUTTON_TYPE gpio_buttons[] = { { IRQ_SMDK_BT2, GPIO_SMDK_BT2, 0, LOW_ACTIVE, GPIO_BOTH_EDGES, GPIO_PULLUP_EN, "eint19", NULL, NULL }, { IRQ_SMDK_BT1, GPIO_SMDK_BT1, 0, LOW_ACTIVE, GPIO_BOTH_EDGES, GPIO_PULLUP_EN, "eint11", NULL, NULL }, { IRQ_SMDK_BT0, GPIO_SMDK_BT0, 0, LOW_ACTIVE, GPIO_BOTH_EDGES, GPIO_PULLUP_EN, "eint2", NULL, NULL },#if CONFIG_PM { IRQ_SMDK_POWER_BT, GPIO_SMDK_POWER_BT, 0, LOW_ACTIVE, GPIO_BOTH_EDGES, GPIO_PULLUP_EN, "Power", pwButtonHandler, NULL },#else { IRQ_SMDK_POWER_BT, GPIO_SMDK_POWER_BT, 0, LOW_ACTIVE, GPIO_BOTH_EDGES, GPIO_PULLUP_EN, "Power", NULL, NULL },#endif END_OF_LIST2};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -