diff options
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-100/button-target.h')
-rw-r--r-- | firmware/target/arm/olympus/mrobe-100/button-target.h | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/firmware/target/arm/olympus/mrobe-100/button-target.h b/firmware/target/arm/olympus/mrobe-100/button-target.h index 900211ebe4..93d42d62fb 100644 --- a/firmware/target/arm/olympus/mrobe-100/button-target.h +++ b/firmware/target/arm/olympus/mrobe-100/button-target.h | |||
@@ -29,22 +29,14 @@ | |||
29 | #define MEP_BUTTON_ID 0x09 | 29 | #define MEP_BUTTON_ID 0x09 |
30 | #define MEP_ABSOLUTE_HEADER 0x0b | 30 | #define MEP_ABSOLUTE_HEADER 0x0b |
31 | 31 | ||
32 | #define HAS_BUTTON_HOLD | ||
33 | |||
34 | bool button_hold(void); | 32 | bool button_hold(void); |
35 | void button_init_device(void); | 33 | void button_init_device(void); |
36 | int button_read_device(void); | 34 | int button_read_device(void); |
37 | 35 | ||
38 | #ifndef BOOTLOADER | 36 | #ifndef BOOTLOADER |
39 | void button_int(void); | 37 | void button_int(void); |
40 | #endif | 38 | #endif |
41 | 39 | ||
42 | #define POWEROFF_BUTTON BUTTON_POWER | ||
43 | #define POWEROFF_COUNT 10 | ||
44 | |||
45 | /* FIXME: Until the buttons are figured out, we use the button definitions | ||
46 | for the H10 keypad & remote. THESE ARE NOT CORRECT! */ | ||
47 | |||
48 | /* Main unit's buttons */ | 40 | /* Main unit's buttons */ |
49 | #define BUTTON_PLAY 0x00000001 | 41 | #define BUTTON_PLAY 0x00000001 |
50 | #define BUTTON_MENU 0x00000002 | 42 | #define BUTTON_MENU 0x00000002 |
@@ -61,18 +53,32 @@ void button_int(void); | |||
61 | |BUTTON_RIGHT|BUTTON_SELECT|BUTTON_UP|BUTTON_SLIDE_UP\ | 53 | |BUTTON_RIGHT|BUTTON_SELECT|BUTTON_UP|BUTTON_SLIDE_UP\ |
62 | |BUTTON_DOWN|BUTTON_SLIDE_DOWN|BUTTON_POWER) | 54 | |BUTTON_DOWN|BUTTON_SLIDE_DOWN|BUTTON_POWER) |
63 | 55 | ||
56 | #define HAS_BUTTON_HOLD | ||
57 | |||
58 | #define POWEROFF_BUTTON BUTTON_POWER | ||
59 | #define POWEROFF_COUNT 10 | ||
60 | |||
61 | #ifdef HAVE_REMOTE_LCD | ||
62 | void headphones_int(void); | ||
63 | bool remote_button_hold(void); | ||
64 | |||
64 | /* Remote control's buttons */ | 65 | /* Remote control's buttons */ |
65 | #define BUTTON_RC_PLAY 0x00010000 | 66 | #define BUTTON_RC_PLAY 0x00010000 |
66 | #define BUTTON_RC_REW 0x00020000 | 67 | #define BUTTON_RC_REW 0x00020000 |
67 | #define BUTTON_RC_FF 0x00040000 | 68 | #define BUTTON_RC_FF 0x00040000 |
68 | #define BUTTON_RC_DISPLAY 0x00080000 | 69 | #define BUTTON_RC_DOWN 0x00080000 |
69 | #define BUTTON_RC_FAV 0x00100000 | 70 | #define BUTTON_RC_HEART 0x00100000 |
70 | #define BUTTON_RC_MODE 0x00200000 | 71 | #define BUTTON_RC_MODE 0x00200000 |
71 | #define BUTTON_RC_VOL_UP 0x00400000 | 72 | #define BUTTON_RC_VOL_UP 0x00400000 |
72 | #define BUTTON_RC_VOL_DOWN 0x00800000 | 73 | #define BUTTON_RC_VOL_DOWN 0x00800000 |
73 | #define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_REW|BUTTON_RC_FF\ | 74 | #define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_REW|BUTTON_RC_FF\ |
74 | |BUTTON_RC_DISPLAY|BUTTON_RC_FAV|BUTTON_RC_MODE\ | 75 | |BUTTON_RC_DOWN|BUTTON_RC_HEART|BUTTON_RC_MODE\ |
75 | |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN) | 76 | |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN) |
77 | |||
78 | #define HAS_REMOTE_BUTTON_HOLD | ||
76 | #define RC_POWEROFF_BUTTON BUTTON_RC_PLAY | 79 | #define RC_POWEROFF_BUTTON BUTTON_RC_PLAY |
80 | #else | ||
81 | #define BUTTON_REMOTE 0 | ||
82 | #endif /* HAVE_REMOTE_LCD */ | ||
77 | 83 | ||
78 | #endif /* _BUTTON_TARGET_H_ */ | 84 | #endif /* _BUTTON_TARGET_H_ */ |