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:
Michael Sevakis 2008-12-03 19:54:25 +00:00
parent 0d0cc039f8
commit 58eb784a5d
41 changed files with 284 additions and 403 deletions

View file

@ -32,16 +32,14 @@
#include "system.h"
#include "power.h"
#ifndef SIMULATOR
void power_init(void)
{
/* Charger detect */
}
bool charger_inserted(void)
{
return false;
unsigned int power_input_status(void)
{
return POWER_INPUT_NONE;
}
void ide_power_enable(bool on)
@ -61,29 +59,6 @@ void power_off(void)
{
}
#else
bool charger_inserted(void)
{
return false;
}
void charger_enable(bool on)
{
(void)on;
}
void power_off(void)
{
}
void ide_power_enable(bool on)
{
(void)on;
}
#endif /* SIMULATOR */
bool tuner_power(bool status)
{
(void)status;