Subversion Repositories freemyipod

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
85 theseven 1
//
2
//
3
//    Copyright 2010 TheSeven
4
//
5
//
427 farthen 6
//    This file is part of emCORE.
85 theseven 7
//
427 farthen 8
//    emCORE is free software: you can redistribute it and/or
85 theseven 9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
427 farthen 13
//    emCORE is distributed in the hope that it will be useful,
85 theseven 14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
427 farthen 19
//    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
85 theseven 20
//
21
//
22
 
23
 
24
#include "global.h"
25
#include "power.h"
26
 
27
 
28
void reset();
29
 
30
 
31
void power_off(void)
32
{
33
    reset();
34
}
35
 
36
void power_init(void)
37
{
38
}
39
 
40
bool charging_state(void)
41
{
42
    return false;
43
}
221 theseven 44
 
45
bool external_power_state(void)
46
{
265 theseven 47
    return false;
221 theseven 48
}
49
 
50
bool vbus_state(void)
51
{
52
    return true;
53
}
622 theseven 54
 
55
int read_battery_voltage(int battery)
56
{
57
    return -1;
58
}
59
 
60
int read_battery_current(int battery)
61
{
62
    return -1;
63
}
64
 
65
int read_battery_mwh_design(int battery)
66
{
67
    return -1;
68
}
69
 
70
int read_battery_mwh_full(int battery)
71
{
72
    return -1;
73
}
74
 
75
int read_battery_mwh_current(int battery)
76
{
77
    return -1;
78
}
79
 
80
int read_battery_mw(int battery)
81
{
82
    return -1;
83
}
84
 
85
int read_input_mw(int battery)
86
{
87
    return -1;
88
}
89
 
90
enum battery_state read_battery_state(int battery)
91
{
92
    if (battery != 0) return BATTERY_STATE_INVALID;
93
    return BATTERY_STATE_UNKNOWN;
94
}