ps2int.c

来自「本程序为应用在Arm7下的Ps2键盘接口程序。避免了因多中断而数据出现错误的情况」· C语言 代码 · 共 20 行

C
20
字号

/****************************************************************************
* File:EINT1_LED.C
* 功能:使用外部中断1进行LED4的控制,每当有一次中断时,即取反LED4,
*      以便指示中断输入。
* 说明:将跳线器JP8_LED4短接。
****************************************************************************/
#include "config.h" 
#include "ps2.c" 

static unsigned char IntNum = 0;
static unsigned char key1;
static unsigned char key2;
static unsigned long key3;
static unsigned char Key_UP1 = 0;//Key_UP是键松开标识
static unsigned char Shift = 0;//Shift是Shift键按下标识

/****************************************************************************
* 名称:Eint0_Exception(void)
* 功能

⌨️ 快捷键说明

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