mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Simplify powermgmt thread loops so it calls functions turn (no more power_thread_sleep). Do other target-friendly simplifications, generic battery switch handling and split sim-specific code. Whoever can, please verify charging on the Archos Recorder (due to change in the charger duty cycle code).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19579 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0f9729739f
commit
3157e13956
34 changed files with 1337 additions and 1124 deletions
|
|
@ -112,6 +112,13 @@
|
|||
/* define this if the unit can be powered or charged via USB */
|
||||
#define HAVE_USB_POWER
|
||||
|
||||
/* define current usage levels */
|
||||
#define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
|
||||
#define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
|
||||
#define CURRENT_RECORD 110 /* additional current while recording */
|
||||
#define CURRENT_MAX_CHG 650 /* maximum charging current */
|
||||
#define CURRENT_REMOTE 8 /* additional current when remote connected */
|
||||
|
||||
/* define this if the unit can have USB charging disabled by user -
|
||||
* if USB/MAIN power is discernable and hardware doesn't compel charging */
|
||||
#define HAVE_USB_CHARGING_ENABLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue