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

📄 keyboarddriver.h

📁 wince ARM9三星2440下的按键驱动
💻 H
字号:
//#include <types.h>
#include <excpt.h>
#include <tchar.h>
#include <cardserv.h>
#include <cardapi.h>
#include <tuple.h>
#include <devload.h>
#include <diskio.h>
#include <nkintr.h>
#include <windev.h>
#include "oalintr.h"

#include  <ceddk.h>
#pragma   comment(lib,"ceddk.lib") 

#include "s2440.h"
#include "define.h"

static  HANDLE  gReadKeyEvent[2];    //读按键事件

static  HANDLE gWaitEvent;           //按键按下中断事件
static  UINT32 g_bKillIST = FALSE;   //是否退出中断服务线程

static  HANDLE gEINTIntrThread;                //中断线程处理
static  UINT32 OpenCount = 0 ;                  //驱动打开次数

static  UINT32 g_EINTIrq19 =  SYSINTR_EINT19 ; //物理中断号 K1
static  UINT32 g_EINTSysIntr19 = SYSINTR_UNDEFINED ;  //SYSINTR_UNDEFINED = -1

static  UINT32 g_EINTIrq11 =  SYSINTR_EINT11 ; //物理中断号 K2 
static  UINT32 g_EINTSysIntr11 = SYSINTR_UNDEFINED ;  //SYSINTR_UNDEFINED = -1

static  UINT32 g_EINTTime0 =  SYSINTR_TIME0 ; //物理中断号  Time0 
static  UINT32 g_EINTSysTime0 = SYSINTR_UNDEFINED ;  //SYSINTR_UNDEFINED = -1

static  volatile IOPreg *v_pIOPregs ;    //GPIO寄存器对应的虚拟地址
static  volatile INTreg *v_pINTreg ;     //中断寄存器对应的虚拟地址
static  volatile PWMreg *v_pPWMreg ;     //PWM寄存器对应的虚拟地址






⌨️ 快捷键说明

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