diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2007-09-20 04:46:41 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2007-09-20 04:46:41 +0000 |
commit | 7b97fe21c0f2c9b6742ad50439020023f385fe6c (patch) | |
tree | 2c1a7312c3373b32e7dbc8a03d76c83dc9c12ce0 /firmware/target/arm/olympus/mrobe-500/button-mr500.c | |
parent | a80c0e8b83eb52a322c2b33e49875159c6d6a12a (diff) | |
download | rockbox-7b97fe21c0f2c9b6742ad50439020023f385fe6c.tar.gz rockbox-7b97fe21c0f2c9b6742ad50439020023f385fe6c.zip |
Beginning of an M:Robe 500i port. Currently only in the bootloader stage. Needs another piece of code to start the boot process - will be in the wiki.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-500/button-mr500.c')
-rw-r--r-- | firmware/target/arm/olympus/mrobe-500/button-mr500.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/firmware/target/arm/olympus/mrobe-500/button-mr500.c b/firmware/target/arm/olympus/mrobe-500/button-mr500.c new file mode 100644 index 0000000000..9cafab5c14 --- /dev/null +++ b/firmware/target/arm/olympus/mrobe-500/button-mr500.c | |||
@@ -0,0 +1,56 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: $ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Karl Kurbjun | ||
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 | #include "config.h" | ||
21 | #include "cpu.h" | ||
22 | #include "system.h" | ||
23 | #include "button.h" | ||
24 | #include "kernel.h" | ||
25 | #include "backlight.h" | ||
26 | #include "adc.h" | ||
27 | #include "system.h" | ||
28 | #include "backlight-target.h" | ||
29 | |||
30 | static int const remote_buttons[] = | ||
31 | { | ||
32 | BUTTON_NONE, /* Headphones connected - remote disconnected */ | ||
33 | BUTTON_RC_PLAY, | ||
34 | BUTTON_RC_DSP, | ||
35 | BUTTON_RC_REW, | ||
36 | BUTTON_RC_FF, | ||
37 | BUTTON_RC_VOL_UP, | ||
38 | BUTTON_RC_VOL_DOWN, | ||
39 | BUTTON_NONE, /* Remote control attached - no buttons pressed */ | ||
40 | BUTTON_NONE, /* Nothing in the headphone socket */ | ||
41 | }; | ||
42 | |||
43 | void button_init_device(void) | ||
44 | { | ||
45 | /* Power, Remote Play & Hold switch */ | ||
46 | } | ||
47 | |||
48 | inline bool button_hold(void) | ||
49 | { | ||
50 | return false; | ||
51 | } | ||
52 | |||
53 | int button_read_device(void) | ||
54 | { | ||
55 | return 0; | ||
56 | } | ||