diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500/button-target.h')
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/button-target.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/button-target.h b/firmware/target/arm/tms320dm320/mrobe-500/button-target.h new file mode 100644 index 0000000000..f574321717 --- /dev/null +++ b/firmware/target/arm/tms320dm320/mrobe-500/button-target.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Jonathan Gordon | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef _BUTTON_TARGET_H_ | ||
21 | #define _BUTTON_TARGET_H_ | ||
22 | |||
23 | #include <stdbool.h> | ||
24 | #include "config.h" | ||
25 | |||
26 | #define HAS_BUTTON_HOLD | ||
27 | |||
28 | bool button_hold(void); | ||
29 | void button_init_device(void); | ||
30 | int button_read_device(void); | ||
31 | |||
32 | /* m:robe 500 specific button codes */ | ||
33 | |||
34 | #define BUTTON_POWER 0x00000001 | ||
35 | |||
36 | /* Remote control buttons */ | ||
37 | |||
38 | #define BUTTON_RC_HEART 0x00000002 | ||
39 | #define BUTTON_RC_MODE 0x00000004 | ||
40 | #define BUTTON_RC_VOL_DOWN 0x00000008 | ||
41 | #define BUTTON_RC_VOL_UP 0x00000010 | ||
42 | |||
43 | |||
44 | #define BUTTON_RC_PLAY 0x00000020 | ||
45 | #define BUTTON_RC_REW 0x00000040 | ||
46 | #define BUTTON_RC_FF 0x00000080 | ||
47 | #define BUTTON_RC_DOWN 0x00000100 | ||
48 | #define BUTTON_TOUCH 0x00000200 | ||
49 | |||
50 | /* compatibility hacks */ | ||
51 | #define BUTTON_LEFT BUTTON_RC_REW | ||
52 | #define BUTTON_RIGHT BUTTON_RC_FF | ||
53 | #define POWEROFF_BUTTON BUTTON_POWER | ||
54 | #define POWEROFF_COUNT 40 | ||
55 | |||
56 | #define BUTTON_MAIN BUTTON_POWER | ||
57 | |||
58 | #define BUTTON_REMOTE (BUTTON_RC_HEART|BUTTON_RC_MODE| \ | ||
59 | BUTTON_RC_VOL_DOWN|BUTTON_RC_VOL_UP| \ | ||
60 | BUTTON_RC_PLAY|BUTTON_RC_DOWN| \ | ||
61 | BUTTON_RC_REW|BUTTON_RC_FF) | ||
62 | |||
63 | #endif /* _BUTTON_TARGET_H_ */ | ||