diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/ipod/video/battery-video.c | 33 | ||||
-rw-r--r-- | firmware/target/arm/system-target.h | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/video/battery-video.c b/firmware/target/arm/ipod/video/battery-video.c new file mode 100644 index 0000000000..b4c460284b --- /dev/null +++ b/firmware/target/arm/ipod/video/battery-video.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id $ | ||
9 | * | ||
10 | * Default battery capacity for ipod video | ||
11 | * | ||
12 | * Copyright (c) 2011 Frank Gevaerts | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | |||
24 | #include "config.h" | ||
25 | #include "system.h" | ||
26 | |||
27 | int battery_default_capacity(void) | ||
28 | { | ||
29 | if(probed_ramsize==64) | ||
30 | return BATTERY_CAPACITY_DEFAULT_THICK; | ||
31 | else | ||
32 | return BATTERY_CAPACITY_DEFAULT_THIN; | ||
33 | } | ||
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h index eb2a07f7d3..e5a8b15f64 100644 --- a/firmware/target/arm/system-target.h +++ b/firmware/target/arm/system-target.h | |||
@@ -173,6 +173,7 @@ static inline void wake_core(int core) | |||
173 | 173 | ||
174 | #if defined(IPOD_VIDEO) && !defined(BOOTLOADER) | 174 | #if defined(IPOD_VIDEO) && !defined(BOOTLOADER) |
175 | extern unsigned char probed_ramsize; | 175 | extern unsigned char probed_ramsize; |
176 | int battery_default_capacity(void); | ||
176 | #endif | 177 | #endif |
177 | 178 | ||
178 | 179 | ||