implemented low battery warning
thanks to eggs owl overlay examples and BlackSeraph's uImage mods
This commit is contained in:
parent
bec0e5182c
commit
c2c8f2d067
6 changed files with 256 additions and 42 deletions
|
|
@ -209,20 +209,26 @@ void VIB_setStrength(int strength);
|
|||
|
||||
///////////////////////////////
|
||||
|
||||
// TODO: rename PLAT_*?
|
||||
#define BRIGHTNESS_BUTTON_LABEL "+ -"
|
||||
#define BRIGHTNESS_BUTTON_LABEL "+ -" // ew
|
||||
typedef void (*POW_callback_t)(void);
|
||||
void POW_init(void);
|
||||
void POW_quit(void);
|
||||
void POW_warn(int enable);
|
||||
|
||||
void POW_update(int* dirty, int* show_setting, POW_callback_t before_sleep, POW_callback_t after_sleep);
|
||||
|
||||
void POW_disablePowerOff(void);
|
||||
void POW_powerOff(void);
|
||||
|
||||
void POW_fauxSleep(void);
|
||||
void POW_disableAutosleep(void);
|
||||
void POW_enableAutosleep(void);
|
||||
int POW_preventAutosleep(void);
|
||||
|
||||
int POW_isCharging(void);
|
||||
int POW_getBattery(void);
|
||||
|
||||
#define CPU_SPEED_MENU 504000 // 240000 was having latency issues
|
||||
#define CPU_SPEED_MENU 504000 // 240000 had latency issues
|
||||
#define CPU_SPEED_POWERSAVE 1104000
|
||||
#define CPU_SPEED_NORMAL 1296000
|
||||
#define CPU_SPEED_PERFORMANCE 1488000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue