mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Straighten out some powermanagement stuff. Give target complete control over how power inputs are sensed. Clean SIMULATOR stuff out of target files. Get rid of USB charging option on targets that don't support it or don't implement it yet. Menu string remains to avoid language incompatibility but should be removed on next cleanup for targets not using it (notice in english.lang). global_settings becomes incompatible for some builds and so plugin API version is incremented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19315 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0d0cc039f8
commit
58eb784a5d
41 changed files with 284 additions and 403 deletions
|
|
@ -41,9 +41,10 @@ void power_init(void)
|
|||
GPIOB_OUTPUT_EN |= 0x80;
|
||||
}
|
||||
|
||||
bool charger_inserted(void)
|
||||
{
|
||||
return (GPIOL_INPUT_VAL & 0x24) ? true : false ;
|
||||
unsigned int power_input_status(void)
|
||||
{
|
||||
return (GPIOL_INPUT_VAL & 0x24) ?
|
||||
POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE;
|
||||
}
|
||||
|
||||
void ide_power_enable(bool on)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue