From 2e1da4d47483d2b1d23ba49edc4ac623ea6cec36 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 27 Jul 2008 12:09:33 +0000 Subject: Comment/line length/spelling police git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18127 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/ata_idle_notify.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index eb2c899b10..8210841af4 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h @@ -25,18 +25,19 @@ #include #include "events.h" -#if 0 - NOTE: ata_idle_nofity usage notes.. - - 1) the callbacks are called in the ata thread, not main/your thread. - 2) Asyncronous callbacks (like the buffer refill) should be avoided. - If you must use an async callback, remember to check ata_is_active() before - accessing the disk, and nonot call any functions between that check and the - disk access which may cause a yield (lcd_update() does this!) - 3) Do not call cany yielding functions in the callback - 4) Do not call ata_sleep in the callbacks - 5) Dont Panic! -#endif +/* + NOTE: ata_idle_notify usage notes.. + +1) The callbacks are called in the ata thread, not main/your thread. +2) Asynchronous callbacks (like the buffer refill) should be avoided. + If you must use an async callback, remember to check ata_is_active() before + accessing the disk, and do not call any functions between that check and the + disk access which may cause a yield (lcd_update() does this!). +3) Do not call any yielding functions in the callback. +4) Do not call ata_sleep in the callbacks. +5) Don't Panic! + +*/ enum { DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), -- cgit v1.2.3