From b1b968a71e80f73cd2666e0c440eeecbe95ea4f8 Mon Sep 17 00:00:00 2001 From: Uwe Freese Date: Sun, 26 Jan 2003 17:33:56 +0000 Subject: LiIon voltages for FM recorder git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3164 a1c6a512-1295-4272-9138-f99709370657 --- firmware/powermgmt.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/firmware/powermgmt.h b/firmware/powermgmt.h index f4c772e221..884e9772e5 100644 --- a/firmware/powermgmt.h +++ b/firmware/powermgmt.h @@ -21,10 +21,18 @@ #ifndef SIMULATOR -#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.5V */ +#ifdef HAVE_FMADC /* FM Recorder, LiIon */ +#define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */ +#define BATTERY_LEVEL_EMPTY 265 /* 2.65V */ +#define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ +#define BATTERY_LEVEL_FULL 400 /* 4.00V */ + +#else /* Recorder, NiCd */ +#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ #define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */ #define BATTERY_LEVEL_FULL 585 /* 5.85V */ +#endif #define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY) #define BATTERY_CAPACITY_MAX 2400 /* max. capacity that can be selected in settings menu, min. is always 1500 */ -- cgit v1.2.3