1
0
Fork 0
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:
Linus Nielsen Feltzing 2006-07-21 09:24:17 +00:00
parent 49b29dd91e
commit eec48a8956
3 changed files with 18 additions and 18 deletions

View file

@ -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

View file

@ -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

View file

@ -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;
}