diff options
author | Daniel Ankers <dan@weirdo.org.uk> | 2006-08-03 16:29:42 +0000 |
---|---|---|
committer | Daniel Ankers <dan@weirdo.org.uk> | 2006-08-03 16:29:42 +0000 |
commit | cec7cdc3bbf46379131e6951585951cf97444326 (patch) | |
tree | 0ea6c203ed51fad4d51a7dc0fb2090f3f1a55dbb /apps/main.c | |
parent | 2fa5d81fcd66abd52cee622ba87787159d3cd2e7 (diff) | |
download | rockbox-cec7cdc3bbf46379131e6951585951cf97444326.tar.gz rockbox-cec7cdc3bbf46379131e6951585951cf97444326.zip |
Initial work for coprocessor support on iPods. FS#5755
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10437 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c index 8ee6adfe4f..f8c3604f6b 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -451,6 +451,19 @@ void init(void) | |||
451 | #endif | 451 | #endif |
452 | } | 452 | } |
453 | 453 | ||
454 | void cop_main(void) | ||
455 | { | ||
456 | /* This is the entry point for the coprocessor | ||
457 | Anyone not running an upgraded bootloader will never reach this point, | ||
458 | so it should not be assumed that the coprocessor be usable even on | ||
459 | platforms which support it. | ||
460 | |||
461 | At present all we do is send the COP to sleep if anything wakes it. */ | ||
462 | while(1) { | ||
463 | COP_CTL = PROC_SLEEP; | ||
464 | } | ||
465 | } | ||
466 | |||
454 | int main(void) | 467 | int main(void) |
455 | { | 468 | { |
456 | app_main(); | 469 | app_main(); |