mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
adds ata_idle_notify system which allows callbacks in apps/ to be called
when the hard disk is idle but spinning, and just before shutting down. on SWCODEC targets with > 8MB RAM the playback engine will try to refill the buffer if it is less than 75% full while the disk is spinning (temporarily disabled on the nano) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11451 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e543901777
commit
0b22795e26
6 changed files with 192 additions and 11 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "config.h"
|
||||
|
||||
#include "ata.h"
|
||||
#include "ata_idle_notify.h"
|
||||
#include "disk.h"
|
||||
#include "fat.h"
|
||||
#include "lcd.h"
|
||||
|
@ -364,6 +365,7 @@ void init(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
ata_idle_notify_init();
|
||||
rc = ata_init();
|
||||
if(rc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue