diff options
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 | } |