From f02cd18ad027cdb4992a19a16cfbd336ffb63124 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 30 Nov 2021 01:26:59 +0000 Subject: 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 --- firmware/export/config/ipod6g.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/export/config/ipod6g.h') 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 @@ /* define current usage levels */ #define CURRENT_NORMAL 18 /* playback @48MHz clock, backlight off */ #define CURRENT_BACKLIGHT 23 /* maximum brightness */ +#define CURRENT_RECORD 2 /* FIXME: placeholder value */ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER -- cgit v1.2.3