summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorTomasz Malesinski <tomal@rockbox.org>2006-08-19 17:45:37 +0000
committerTomasz Malesinski <tomal@rockbox.org>2006-08-19 17:45:37 +0000
commit2b415eff3f06adaee273bc867e0c25e88f1c031e (patch)
treeed0d161f8d57b218d4f5c4da581fd74a3c040c9c /firmware/export
parent12f1a834f2a4d1603784f57bafe03bcdd9dbe2c4 (diff)
downloadrockbox-2b415eff3f06adaee273bc867e0c25e88f1c031e.zip
rockbox-2b415eff3f06adaee273bc867e0c25e88f1c031e.tar.gz
rockbox-2b415eff3f06adaee273bc867e0c25e88f1c031e.tar.bz2
rockbox-2b415eff3f06adaee273bc867e0c25e88f1c031e.tar.xz
Iriver iFP7xx battery support (1xAA).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10659 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ifp7xx.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h
index 4d89099..cebb319 100644
--- a/firmware/export/config-ifp7xx.h
+++ b/firmware/export/config-ifp7xx.h
@@ -43,6 +43,8 @@
#define HAVE_FLASH_DISK
+#define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
+
#ifndef SIMULATOR
/* Define this if you have a Philips PNX0101 */
@@ -52,15 +54,12 @@
#define CONFIG_I2C I2C_PNX0101
/* Type of mobile power */
-//#define CONFIG_BATTERY BATT_LIPOL1300
-
-#define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */
-
-/* Hardware controlled charging? FIXME */
-//#define CONFIG_CHARGING CHARGING_SIMPLE
-
-/* define this if the hardware can be powered off while charging */
-//#define HAVE_POWEROFF_WHILE_CHARGING
+#define CONFIG_BATTERY BATT_1AA
+#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
+#define BATTERY_CAPACITY_MAX 2800 /* max. capacity selectable */
+#define BATTERY_CAPACITY_INC 50 /* capacity increment */
+#define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
+#define BATTERY_SCALE_FACTOR 3000 /* TODO: only roughly correct */
/* The start address index for ROM builds */
#define ROM_START 0x00000000