-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyboard.h
63 lines (58 loc) · 2.25 KB
/
keyboard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/***************************************************************************************
* File Name : keyboard.h
* CopyRight : 1.0
* ModuleName : keyboard module
*
* Create Data : 2016/01/06
* Author/Corportation : ZhuoJianhuan
*
* Abstract Description : 键盘输入输出函数的声明文件
*
*--------------------------------Revision History--------------------------------------
* No version Data Revised By Item Description
* 1 v1.0 2016/01/06 ZhuoJianhuan Create this file
*
***************************************************************************************/
/**************************************************************
* Multi-Include-Prevent Section
**************************************************************/
#ifndef __KEYBOARD_H
#define __KEYBOARD_H
/**************************************************************
* Debug switch Section
**************************************************************/
/**************************************************************
* Include File Section
**************************************************************/
/**************************************************************
* Macro Define Section
**************************************************************/
#define PORT_KEYDAT 0x0060
#define PORT_KEYCMD 0x0064
/**************************************************************
* Struct Define Section
**************************************************************/
/**************************************************************
* Global Variable Declare Section
**************************************************************/
/**************************************************************
* Prototype Declare Section
**************************************************************/
/**
* @description 初始化键盘模块
* @param fifo:关联键盘的缓冲
* data0:键盘使用的关键字
*/
void init_keyboard(struct FIFO32 *fifo, int data0);
/**
* @description 等待键盘就绪
*/
void wait_KBC_sendready(void);
/**
* @description 键盘中断服务函数
*/
void inthandler21(int *esp);
/**************************************************************
* End-Multi-Include-Prevent Section
**************************************************************/
#endif