ARMEBS4  revision-26.06.2015
keyboard.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////
2 /// \file heivs/keyboard.h
3 /// \brief PS2 keyboard functions and definitions
4 /// \author Pascal Sartoretti (sap at hevs dot ch)
5 //////////////////////////////////////////////////////////////////////////////////
6 /************************************************************************//**
7  * \defgroup keyboard Keyboard
8  * \ingroup libheivs_stm32
9  * @{
10  ***************************************************************************/
11 #ifndef HEIVS_KEYBOARD_H
12 #define HEIVS_KEYBOARD_H
13 
14 #include "heivs/bsp.h"
15 
16 /// these special keys could be changed for user need
17 #define PS2_TAB 9
18 #define PS2_ENTER 13
19 #define PS2_BACKSPACE 127
20 #define PS2_ESC 27
21 #define PS2_INSERT 0
22 #define PS2_DELETE 127
23 #define PS2_HOME 0
24 #define PS2_END 0
25 #define PS2_PAGEUP 25
26 #define PS2_PAGEDOWN 26
27 #define PS2_UPARROW 11
28 #define PS2_LEFTARROW 8
29 #define PS2_DOWNARROW 10
30 #define PS2_RIGHTARROW 21
31 #define PS2_F1 0
32 #define PS2_F2 0
33 #define PS2_F3 0
34 #define PS2_F4 0
35 #define PS2_F5 0
36 #define PS2_F6 0
37 #define PS2_F7 0
38 #define PS2_F8 0
39 #define PS2_F9 0
40 #define PS2_F10 0
41 #define PS2_F11 0
42 #define PS2_F12 0
43 #define PS2_SCROLL 0
44 
45 #ifdef __cplusplus
46  extern "C" {
47 #endif
48 
49 void KeyboardInit(void (*hanlder)(void), uint8_t prio);
50 uint8_t KeyboardRead(void);
51 
52 #ifdef __cplusplus
53  }
54 #endif
55 
56 /**
57  * @}
58  */
59 #endif
uint8_t KeyboardRead(void)
reads the keyboard
Definition: keyboard.c:104
BSP - Board Support Package.