[prev in list] [next in list] [prev in thread] [next in thread]
List: rockbox-cvs
Subject: xduoox3: Update battery discharge curve and runtime estimates
From: rockbox-gerrit-noreply--- via rockbox-cvs <rockbox-cvs () cool ! haxx ! se>
Date: 2020-08-26 12:36:55
Message-ID: 202008261236.07QCatZN1644689 () stuffed ! shaftnet ! org
[Download RAW message or body]
commit f791df13751d0c43a2b1ae0adb6f6bc4385c2cc3
Author: Solomon Peachy <pizza@shaftnet.org>
Date: Wed Aug 26 07:41:20 2020 -0400
xduoox3: Update battery discharge curve and runtime estimates
(Brand new unit lasted one minute shy of 12 hours!)
Change-Id: I0330f43065412d432a45b555bb310f943eb526e7
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h
index 75f9b43cb0..30f0330edd 100644
--- a/firmware/export/config/xduoox3.h
+++ b/firmware/export/config/xduoox3.h
@@ -116,6 +116,10 @@
#define BATTERY_CAPACITY_INC 100 /* capacity increment */
#define BATTERY_TYPES_COUNT 1 /* only one type */
+#define CURRENT_NORMAL 167 // 2.78mA * 60s
+#define CURRENT_BACKLIGHT 180 // 15mA * 60s
+#define CURRENT_MAX_CHG 500 // bursts higher if needed
+
#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
/* Hardware controlled charging with monitoring */
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c \
b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c index \
d227255b8a..e1e578ae67 100644
--- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
+++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
@@ -151,26 +151,26 @@ void KEY_INT_IRQ(void)
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
/* 5% */
- 3634
+ 3414
};
const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
{
/* 0% */
- 3300
+ 3307
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- { 3300, 3652, 3704, 3730, 3753, 3786, 3836, 3906, 3973, 4061, 4160 }
+ { 3307, 3459, 3530, 3575, 3608, 3648, 3723, 3819, 3918, 4022, 4162 }
};
#if CONFIG_CHARGING
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short percent_to_volt_charge[11] =
- { 3300, 3652, 3704, 3730, 3753, 3786, 3836, 3906, 3973, 4061, 4160 };
+ { 3307, 3459, 3530, 3575, 3608, 3648, 3723, 3819, 3918, 4022, 4162 };
#endif /* CONFIG_CHARGING */
/* VBAT = (BDATA/1024) * 2.5V */
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
https://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic