From 36355a5c6646ce51969b68526058efa5f325fcbf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 2 Feb 2005 21:47:08 +0000 Subject: provide a temporary ROLO dummy when built for coldfire git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5742 a1c6a512-1295-4272-9138-f99709370657 --- firmware/rolo.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/firmware/rolo.c b/firmware/rolo.c index 5b69c3679f..2d8a1c54c7 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -17,6 +17,7 @@ * ****************************************************************************/ +#include "config.h" #include "lcd.h" #include "kernel.h" #include "sprintf.h" @@ -28,6 +29,8 @@ #include "string.h" #include "buffer.h" +#if CONFIG_CPU != MCF5249 /* FIX: this doesn't work on iRiver yet */ + #define IRQ0_EDGE_TRIGGER 0x80 static void rolo_error(const char *text) @@ -130,14 +133,22 @@ int rolo_load(const char* filename) system_init(); /* Initialize system for restart */ i2c_init(); /* Init i2c bus - it seems like a good idea */ ICR = IRQ0_EDGE_TRIGGER; /* Make IRQ0 edge triggered */ - TSTR = 0xE0; /* disable all timers */ + TSTR = 0xE0; /* disable all timers */ /* model-specific de-init, needed when flashed */ /* Especially the Archos software is picky about this */ -#if defined(ARCHOS_RECORDER) || defined(ARCHOS_RECORDERV2) || defined(ARCHOS_FMRECORDER) - PAIOR = 0x0FA0; +#if defined(ARCHOS_RECORDER) || defined(ARCHOS_RECORDERV2) || \ + defined(ARCHOS_FMRECORDER) + PAIOR = 0x0FA0; #endif rolo_restart(mp3buf, ramstart, length); return 0; /* this is never reached */ } +#else /* CONFIG_CPU != MCF5249 */ +int rolo_load(const char* filename) +{ + /* dummy */ +} + +#endif /* CONFIG_CPU == MCF5249 */ -- cgit v1.2.3