HAVE_ATA_POWER_OFF is now defined and used if the platform has support for
that control git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2889 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2b77b4fdd5
commit
cf1368145a
2 changed files with 5 additions and 1 deletions
|
@ -16,3 +16,5 @@
|
|||
/* Define this if you have charging control */
|
||||
#define HAVE_CHARGE_CTRL
|
||||
|
||||
/* Define this if you have ATA power-off control */
|
||||
#define HAVE_ATA_POWER_OFF
|
||||
|
|
|
@ -83,7 +83,7 @@ bool old_recorder = false;
|
|||
static bool sleeping = false;
|
||||
static int sleep_timeout = 5*HZ;
|
||||
static bool poweroff = false;
|
||||
#ifdef ARCHOS_RECORDER
|
||||
#ifdef HAVE_ATA_POWER_OFF
|
||||
static int poweroff_timeout = 2*HZ;
|
||||
#endif
|
||||
static char ata_stack[DEFAULT_STACK_SIZE];
|
||||
|
@ -411,6 +411,7 @@ void ata_spindown(int seconds)
|
|||
sleep_timeout = seconds * HZ;
|
||||
}
|
||||
|
||||
#ifdef HAVE_ATA_POWER_OFF
|
||||
void ata_poweroff(bool enable)
|
||||
{
|
||||
if (enable)
|
||||
|
@ -418,6 +419,7 @@ void ata_poweroff(bool enable)
|
|||
else
|
||||
poweroff_timeout = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool ata_disk_is_active(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue