comparison chipsetsw/drivers/drv_app/kpd/kpd_physical_key_def.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /**
2 * @file kpd_physical_key_def.h
3 *
4 * Definition of physical key values available on keypad.
5 *
6 * @author Laurent Sollier (l-sollier@ti.com)
7 * @version 0.1
8 */
9
10 /*
11 * History:
12 *
13 * Date Author Modification
14 * ----------------------------------------
15 * 11/02/2001 L Sollier Create
16 *
17 *
18 * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
19 */
20
21 /** Definition of the physical key ID.
22 */
23
24 #ifndef _KPD_PHYSICAL_KEY_DEF_H_
25 #define _KPD_PHYSICAL_KEY_DEF_H_
26
27 #ifndef _WINDOWS
28 #include "config/board.cfg"
29 #endif
30
31 /** Definition of the physical key ID.
32 */
33
34 #define KPD_PKEY_NULL (-1)
35
36 #define KPD_PKEY_0 (0)
37 #define KPD_PKEY_1 (1)
38 #define KPD_PKEY_2 (2)
39 #define KPD_PKEY_3 (3)
40 #define KPD_PKEY_4 (4)
41 #define KPD_PKEY_5 (5)
42 #define KPD_PKEY_6 (6)
43 #define KPD_PKEY_7 (7)
44 #define KPD_PKEY_8 (8)
45 #define KPD_PKEY_9 (9)
46 #define KPD_PKEY_UP (10)
47 #define KPD_PKEY_DOWN (11)
48 #define KPD_PKEY_SOFT_LEFT (12)
49 #define KPD_PKEY_SOFT_RIGHT (13)
50 #define KPD_PKEY_GREEN (14)
51 #define KPD_PKEY_RED (15)
52 #define KPD_PKEY_DIESE (16)
53 #define KPD_PKEY_STAR (17)
54
55 #if (BOARD == 40) || (BOARD == 41) || (BOARD == 42) || (BOARD == 43) || (defined _WINDOWS)
56
57 #define KPD_PKEY_VOL_UP (18)
58 #define KPD_PKEY_VOL_DOWN (19)
59 #define KPD_PKEY_LEFT (20)
60 #define KPD_PKEY_RIGHT (21)
61 #define KPD_PKEY_NAV_CENTER (22)
62 #define KPD_PKEY_REC (23)
63
64 #endif
65
66 /* The PWR key is mapped on Analog Base Band, it's the SPI which inform
67 the keypad that the PWR key is pressed, so the process for this key
68 is different of the others, a subscriber can be notified only by a
69 short press of the PWR key, even if this key has been set for a long press
70 or repeat press with the function kpd_define_repeat_keys. The following
71 #define allows to map any key with the PWR key. */
72 #define KPD_SHORT_PRESS_PWR_KEY KPD_PKEY_RED
73
74
75 #endif /* #ifndef _KPD_PHYSICAL_KEY_DEF_H_ */