diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-03-24 16:40:31 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-03-24 16:40:31 +0000 |
commit | 2670e3f0387882dbc70346d0449939a9c5726d0c (patch) | |
tree | 1638ccada3010fecab5731bb034f003a13c0696d /firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c | |
parent | a5501d68ccbb2f9690cb8d6a83b17b4bb204aa6c (diff) | |
download | rockbox-2670e3f0387882dbc70346d0449939a9c5726d0c.tar.gz rockbox-2670e3f0387882dbc70346d0449939a9c5726d0c.zip |
More M:Robe 500 work: PCM stopping and pausing roughly works, added some keymaps for the WPS screen, and peakmeter now works properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20511 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c index 8e8531e4ff..ed7954d74b 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c | |||
@@ -40,11 +40,16 @@ void power_init(void) | |||
40 | 40 | ||
41 | unsigned int power_input_status(void) | 41 | unsigned int power_input_status(void) |
42 | { | 42 | { |
43 | if(IO_GIO_BITSET1&(1<<9)) | ||
44 | { | ||
45 | return POWER_INPUT_MAIN_CHARGER; | ||
46 | } | ||
43 | return POWER_INPUT_NONE; | 47 | return POWER_INPUT_NONE; |
44 | } | 48 | } |
45 | 49 | ||
46 | /* Returns true if the unit is charging the batteries. */ | 50 | /* Returns true if the unit is charging the batteries. */ |
47 | bool charging_state(void) { | 51 | bool charging_state(void) |
52 | { | ||
48 | return false; | 53 | return false; |
49 | } | 54 | } |
50 | 55 | ||
@@ -67,5 +72,6 @@ void power_off(void) | |||
67 | _backlight_off(); | 72 | _backlight_off(); |
68 | sleep(HZ); | 73 | sleep(HZ); |
69 | /* Hard shutdown */ | 74 | /* Hard shutdown */ |
75 | IO_GIO_DIR1&=~(1<<10); | ||
70 | IO_GIO_BITSET1|=1<<10; | 76 | IO_GIO_BITSET1|=1<<10; |
71 | } | 77 | } |