diff options
Diffstat (limited to 'firmware/target/arm/s5l8700/ipodnano2g/pmu-target.h')
-rw-r--r-- | firmware/target/arm/s5l8700/ipodnano2g/pmu-target.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/pmu-target.h b/firmware/target/arm/s5l8700/ipodnano2g/pmu-target.h new file mode 100644 index 0000000000..608a22a8eb --- /dev/null +++ b/firmware/target/arm/s5l8700/ipodnano2g/pmu-target.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright © 2009 Michael Sparmann | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef __PMU_NANO2G_H__ | ||
23 | #define __PMU_NANO2G_H__ | ||
24 | |||
25 | #include "config.h" | ||
26 | |||
27 | unsigned char pmu_read(int address); | ||
28 | void pmu_write(int address, unsigned char val); | ||
29 | void pmu_read_multiple(int address, int count, unsigned char* buffer); | ||
30 | void pmu_write_multiple(int address, int count, unsigned char* buffer); | ||
31 | int pmu_read_battery_voltage(void); | ||
32 | int pmu_read_battery_current(void); | ||
33 | void pmu_init(void); | ||
34 | |||
35 | #endif | ||