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

📄 keyboard.h

📁 基于51的单片机的PPP协议实现
💻 H
字号:
#ifndef __KEYBOARD
#define __KEYBOARD	1

#if HIWARE
	#ifdef __cplusplus
		extern "C" {
	#endif
#endif

#include "Notation.h"


#if HIWARE
	#include <hidef.h>
#endif

#if !HIWARE
extern @interrupt void KeyboardISR (void);
#endif


#define KB_IMASKK	0x02
#define KB_MODEK	0x01
#define KB_ACK		0x04
#define KB_FLAG		0x08

#define KB_KEY0		0x01
#define KB_KEY1		0x02
#define KB_KEY2		0x04
#define KB_KEY3		0x08
#define KB_KEY4		0x10
#define KB_KEY5		0x20
#define KB_KEY6		0x40
#define KB_KEY7		0x80

#define MSG_KEYPRESS 0x08

extern void KeyboardStart (void);
extern volatile BYTE Key;
//extern unsigned char sysTickTBM;

//#define sysConfigTBM volatile (unsigned char *)0x1C


#endif

⌨️ 快捷键说明

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