mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Fix a few missed things in 16454efc (and hopefully clear the red).
Change-Id: I2ce88e4c41e6e08efbfbdf261122318dfb0f8b0f
This commit is contained in:
parent
1654efc313
commit
e4a46c8d88
4 changed files with 31 additions and 5 deletions
|
|
@ -116,3 +116,30 @@ int nand_num_drives(int first_drive)
|
|||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
int nand_event(long id, intptr_t data)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
#if 0 /* The NAND functions do nothing right now; just provide template */
|
||||
if (LIKELY(id == Q_STORAGE_TICK))
|
||||
{
|
||||
if (!nand_powered ||
|
||||
TIME_BEFORE(current_tick, nand_last_activity() + HZ / 5))
|
||||
{
|
||||
STG_EVENT_ASSERT_ACTIVE(STORAGE_NAND);
|
||||
}
|
||||
}
|
||||
else if (id == Q_STORAGE_SLEEPNOW)
|
||||
{
|
||||
nand_power_down();
|
||||
}
|
||||
else
|
||||
{
|
||||
rc = storage_event_default_handler(id, data, nand_last_activity(),
|
||||
STORAGE_NAND);
|
||||
}
|
||||
#endif
|
||||
return rc;
|
||||
(void)id; (void)data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue