summaryrefslogtreecommitdiff
path: root/firmware/export/config/ipod6g.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-30 01:26:59 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-05 15:11:34 -0500
commitf02cd18ad027cdb4992a19a16cfbd336ffb63124 (patch)
treea412532ad38baac5390015d89696a5f67eaabe57 /firmware/export/config/ipod6g.h
parent8a8dfa0e52d0d7001d52ff29a2da60986b3e5101 (diff)
downloadrockbox-f02cd18ad027cdb4992a19a16cfbd336ffb63124.tar.gz
rockbox-f02cd18ad027cdb4992a19a16cfbd336ffb63124.zip
powermgmt: Refactor battery current estimation
Create a new battery_current() function to report the the battery's charging/discharging current. Move the old runcurrent() implementation into it and clean up some of the related defines. Change-Id: I7dbe5b6532d291fa72add1cb23b30e3cbac8c3ca
Diffstat (limited to 'firmware/export/config/ipod6g.h')
-rw-r--r--firmware/export/config/ipod6g.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h
index fdf7e8e516..2e4afbdf63 100644
--- a/firmware/export/config/ipod6g.h
+++ b/firmware/export/config/ipod6g.h
@@ -158,6 +158,7 @@
158/* define current usage levels */ 158/* define current usage levels */
159#define CURRENT_NORMAL 18 /* playback @48MHz clock, backlight off */ 159#define CURRENT_NORMAL 18 /* playback @48MHz clock, backlight off */
160#define CURRENT_BACKLIGHT 23 /* maximum brightness */ 160#define CURRENT_BACKLIGHT 23 /* maximum brightness */
161#define CURRENT_RECORD 2 /* FIXME: placeholder value */
161 162
162/* define this if the unit can be powered or charged via USB */ 163/* define this if the unit can be powered or charged via USB */
163#define HAVE_USB_POWER 164#define HAVE_USB_POWER