summaryrefslogtreecommitdiff
path: root/firmware/target/arm/olympus/mrobe-100/button-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-100/button-target.h')
-rw-r--r--firmware/target/arm/olympus/mrobe-100/button-target.h39
1 files changed, 24 insertions, 15 deletions
diff --git a/firmware/target/arm/olympus/mrobe-100/button-target.h b/firmware/target/arm/olympus/mrobe-100/button-target.h
index c7d9114004..78b37f6ba6 100644
--- a/firmware/target/arm/olympus/mrobe-100/button-target.h
+++ b/firmware/target/arm/olympus/mrobe-100/button-target.h
@@ -28,6 +28,7 @@
28bool button_hold(void); 28bool button_hold(void);
29void button_init_device(void); 29void button_init_device(void);
30int button_read_device(void); 30int button_read_device(void);
31void button_int(void);
31 32
32#define POWEROFF_BUTTON BUTTON_POWER 33#define POWEROFF_BUTTON BUTTON_POWER
33#define POWEROFF_COUNT 10 34#define POWEROFF_COUNT 10
@@ -36,25 +37,33 @@ int button_read_device(void);
36 for the H10 keypad & remote. THESE ARE NOT CORRECT! */ 37 for the H10 keypad & remote. THESE ARE NOT CORRECT! */
37 38
38/* Main unit's buttons */ 39/* Main unit's buttons */
39#define BUTTON_POWER 0x00000001 40#define BUTTON_PLAY 0x00000001
40#define BUTTON_LEFT 0x00000002 41#define BUTTON_MENU 0x00000002
41#define BUTTON_RIGHT 0x00000004 42#define BUTTON_LEFT 0x00000004
42#define BUTTON_REW 0x00000008 43#define BUTTON_DISPLAY 0x00000008
43#define BUTTON_PLAY 0x00000010 44#define BUTTON_RIGHT 0x00000010
44#define BUTTON_FF 0x00000020 45#define BUTTON_SELECT 0x00000020
45#define BUTTON_SCROLL_UP 0x00000040 46#define BUTTON_UP 0x00000040
46#define BUTTON_SCROLL_DOWN 0x00000080 47#define BUTTON_SLIDE_UP 0x00000080
47#define BUTTON_MAIN (BUTTON_POWER|BUTTON_O|BUTTON_BACK|BUTTON_REW\ 48#define BUTTON_DOWN 0x00000100
48 |BUTTON_PLAY|BUTTON_FF) 49#define BUTTON_SLIDE_DOWN 0x00000200
50#define BUTTON_POWER 0x00000400
51#define BUTTON_MAIN (BUTTON_PLAY|BUTTON_MENU|BUTTON_LEFT|BUTTON_DISPLAY\
52 |BUTTON_RIGHT|BUTTON_SELECT|BUTTON_UP|BUTTON_SLIDE_UP\
53 |BUTTON_DOWN|BUTTON_SLIDE_DOWN|BUTTON_POWER)
49 54
50/* Remote control's buttons */ 55/* Remote control's buttons */
51#define BUTTON_RC_REW 0x00080000 56#define BUTTON_RC_PLAY 0x00010000
52#define BUTTON_RC_PLAY 0x00100000 57#define BUTTON_RC_REW 0x00020000
53#define BUTTON_RC_FF 0x00200000 58#define BUTTON_RC_FF 0x00040000
59#define BUTTON_RC_DISPLAY 0x00080000
60#define BUTTON_RC_FAV 0x00100000
61#define BUTTON_RC_MODE 0x00200000
54#define BUTTON_RC_VOL_UP 0x00400000 62#define BUTTON_RC_VOL_UP 0x00400000
55#define BUTTON_RC_VOL_DOWN 0x00800000 63#define BUTTON_RC_VOL_DOWN 0x00800000
56#define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN\ 64#define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_REW|BUTTON_RC_FF|\
57 |BUTTON_RC_REW|BUTTON_RC_FF) 65 |BUTTON_RC_DISPLAY|BUTTON_RC_FAV|BUTTON_RC_MODE\
66 |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN)
58#define RC_POWEROFF_BUTTON BUTTON_RC_PLAY 67#define RC_POWEROFF_BUTTON BUTTON_RC_PLAY
59 68
60#endif /* _BUTTON_TARGET_H_ */ 69#endif /* _BUTTON_TARGET_H_ */