Add templates for hw definitions.
[bertos.git] / hw / kbd_map.h
1 /*!
2  * \file
3  * <!--
4  * Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
5  * Copyright 2000 Bernardo Innocenti
6  * All Rights Reserved.
7  * -->
8  *
9  * \brief Keyboard map definitions.
10  *
11  * \version $Id$
12  *
13  * \author Francesco Sacchi <batt@develer.com>
14  * \author Stefano Fedrigo <a@develer.com>
15  */
16
17 /*#*
18  *#* $Log$
19  *#* Revision 1.1  2006/02/10 12:31:03  bernie
20  *#* Add templates for hw definitions.
21  *#*
22  *#*/
23
24 #ifndef HW_KBD_MAP_H
25 #define HW_KBD_MAP_H
26
27 #include <cfg/macros.h>
28
29
30 /*!
31  * Type for keyboard mask.
32  */
33 typedef uint16_t keymask_t;
34
35 /*!
36  * \name Keycodes.
37  */
38 /*@{*/
39 #define K_UP       BV(0)
40 #define K_DOWN     BV(1)
41 #define K_OK       BV(2)
42 #define K_CANCEL   BV(3)
43
44 #define K_REPEAT   BV(14) /*!< This is a repeated keyevent. */
45 #define K_TIMEOUT  BV(15) /*!< Fake key event for timeouts. */
46 /*@}*/
47
48
49 #endif /* HW_KBD_MAP_H */