diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-27 12:09:33 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-27 12:09:33 +0000 |
commit | 2e1da4d47483d2b1d23ba49edc4ac623ea6cec36 (patch) | |
tree | 4d126f832d86cddb86ec60b4ddbc8a987db2f2bf | |
parent | 0d2254f4789dae6b3ce81b4a8f8fd040366f6367 (diff) | |
download | rockbox-2e1da4d47483d2b1d23ba49edc4ac623ea6cec36.tar.gz rockbox-2e1da4d47483d2b1d23ba49edc4ac623ea6cec36.zip |
Comment/line length/spelling police
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18127 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/ata_idle_notify.h | 25 |
1 files 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 @@ | |||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "events.h" | 26 | #include "events.h" |
27 | 27 | ||
28 | #if 0 | 28 | /* |
29 | NOTE: ata_idle_nofity usage notes.. | 29 | NOTE: ata_idle_notify usage notes.. |
30 | 30 | ||
31 | 1) the callbacks are called in the ata thread, not main/your thread. | 31 | 1) The callbacks are called in the ata thread, not main/your thread. |
32 | 2) Asyncronous callbacks (like the buffer refill) should be avoided. | 32 | 2) Asynchronous callbacks (like the buffer refill) should be avoided. |
33 | If you must use an async callback, remember to check ata_is_active() before | 33 | If you must use an async callback, remember to check ata_is_active() before |
34 | accessing the disk, and nonot call any functions between that check and the | 34 | accessing the disk, and do not call any functions between that check and the |
35 | disk access which may cause a yield (lcd_update() does this!) | 35 | disk access which may cause a yield (lcd_update() does this!). |
36 | 3) Do not call cany yielding functions in the callback | 36 | 3) Do not call any yielding functions in the callback. |
37 | 4) Do not call ata_sleep in the callbacks | 37 | 4) Do not call ata_sleep in the callbacks. |
38 | 5) Dont Panic! | 38 | 5) Don't Panic! |
39 | #endif | 39 | |
40 | */ | ||
40 | 41 | ||
41 | enum { | 42 | enum { |
42 | DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), | 43 | DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), |