diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-12-29 02:49:12 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-12-29 02:49:12 +0000 |
commit | 295367686ec9855c4d90f68a6003e819fef8e7ab (patch) | |
tree | b4077ffb8d2283bf199ad12a90322be77040c2fd /firmware/target/arm/gigabeat/meg-fx/button-target.h | |
parent | 995a804defda23233ccbdd859023f4ba3ecba0bf (diff) | |
download | rockbox-295367686ec9855c4d90f68a6003e819fef8e7ab.tar.gz rockbox-295367686ec9855c4d90f68a6003e819fef8e7ab.zip |
merge a big part of the unofficial gigabeat cvs back. Includes working bootloader and rockbox with audio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx/button-target.h')
-rw-r--r-- | firmware/target/arm/gigabeat/meg-fx/button-target.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/button-target.h b/firmware/target/arm/gigabeat/meg-fx/button-target.h index 95fb72e601..ab68e8050f 100644 --- a/firmware/target/arm/gigabeat/meg-fx/button-target.h +++ b/firmware/target/arm/gigabeat/meg-fx/button-target.h | |||
@@ -45,6 +45,37 @@ int button_read_device(void); | |||
45 | #define BUTTON_A 0x00000200 | 45 | #define BUTTON_A 0x00000200 |
46 | 46 | ||
47 | 47 | ||
48 | /* Toshiba Gigabeat specific remote button ADC values */ | ||
49 | /* The remote control uses ADC 1 to emulate button pushes | ||
50 | Reading (approx) Button HP plugged in? Remote plugged in? | ||
51 | 0 N/A Yes No | ||
52 | 125 Play/Pause Cant tell Yes | ||
53 | 241 Speaker+ Cant tell Yes | ||
54 | 369 Rewind Cant tell Yes | ||
55 | 492 Fast Fwd Cant tell Yes | ||
56 | 616 Vol + Cant tell Yes | ||
57 | 742 Vol - Cant tell Yes | ||
58 | 864 None Cant tell Yes | ||
59 | 1023 N/A No No | ||
60 | */ | ||
61 | |||
62 | /* | ||
63 | Notes: | ||
64 | |||
65 | Buttons on the remote are translated into equivalent button presses just | ||
66 | as if you were pressing them on the Gigabeat itself. | ||
67 | |||
68 | We cannot tell if the hold is asserted on the remote. The Hold function on | ||
69 | the remote is to block the output of the buttons changing. | ||
70 | |||
71 | Only one button can be sensed at a time. If another is pressed, the button | ||
72 | with the lowest reading is dominant. So, if Rewind and Vol + are pressed | ||
73 | at the same time, Rewind value is the one that is read. | ||
74 | */ | ||
75 | |||
76 | |||
77 | |||
78 | |||
48 | #define BUTTON_MAIN (BUTTON_POWER|BUTTON_MENU|BUTTON_LEFT|BUTTON_RIGHT\ | 79 | #define BUTTON_MAIN (BUTTON_POWER|BUTTON_MENU|BUTTON_LEFT|BUTTON_RIGHT\ |
49 | |BUTTON_UP|BUTTON_DOWN|BUTTON_VOL_UP|BUTTON_VOL_DOWN\ | 80 | |BUTTON_UP|BUTTON_DOWN|BUTTON_VOL_UP|BUTTON_VOL_DOWN\ |
50 | |BUTTON_SELECT|BUTTON_A) | 81 | |BUTTON_SELECT|BUTTON_A) |