forked from len0rd/rockbox
iAudio X5: Fix sim build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10274 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
49b29dd91e
commit
eec48a8956
3 changed files with 18 additions and 18 deletions
|
|
@ -210,10 +210,10 @@ drivers/isp1362.c
|
|||
drivers/m5636.c
|
||||
#endif
|
||||
|
||||
#ifndef SIMULATOR
|
||||
#ifdef IAUDIO_X5
|
||||
drivers/generic_i2c.c
|
||||
target/coldfire/iaudio/x5/power-x5.c
|
||||
#ifndef SIMULATOR
|
||||
drivers/generic_i2c.c
|
||||
target/coldfire/iaudio/x5/lcd-x5.c
|
||||
target/coldfire/iaudio/x5/pcf50606-x5.c
|
||||
target/coldfire/iaudio/x5/adc-x5.c
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@
|
|||
|
||||
#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
|
||||
|
||||
#define HAVE_TLV320
|
||||
|
||||
#ifndef SIMULATOR
|
||||
|
||||
/* Define this if you have a Motorola SCF5250 */
|
||||
|
|
@ -68,8 +70,6 @@
|
|||
/* Define this if you want to use coldfire's i2c interface */
|
||||
#define CONFIG_I2C I2C_COLDFIRE
|
||||
|
||||
#define HAVE_TLV320
|
||||
|
||||
/* Hardware controlled charging? FIXME */
|
||||
#define CONFIG_CHARGING CHARGING_SIMPLE
|
||||
|
||||
|
|
|
|||
|
|
@ -64,20 +64,6 @@ void power_off(void)
|
|||
yield();
|
||||
}
|
||||
|
||||
static bool powered = false;
|
||||
|
||||
bool radio_powered()
|
||||
{
|
||||
return powered;
|
||||
}
|
||||
|
||||
bool radio_power(bool status)
|
||||
{
|
||||
bool old_status = powered;
|
||||
powered = status;
|
||||
return old_status;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
bool charger_inserted(void)
|
||||
|
|
@ -100,3 +86,17 @@ void ide_power_enable(bool on)
|
|||
}
|
||||
|
||||
#endif /* SIMULATOR */
|
||||
|
||||
static bool powered = false;
|
||||
|
||||
bool radio_powered()
|
||||
{
|
||||
return powered;
|
||||
}
|
||||
|
||||
bool radio_power(bool status)
|
||||
{
|
||||
bool old_status = powered;
|
||||
powered = status;
|
||||
return old_status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue