diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-02-02 21:47:08 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-02 21:47:08 +0000 |
| commit | 36355a5c6646ce51969b68526058efa5f325fcbf (patch) | |
| tree | 6b2a5c3536d0e6f09b174eaae0502c8eabe2cddf | |
| parent | f348f8f20c0150e0b456598efa25f695a783f55a (diff) | |
| download | rockbox-36355a5c6646ce51969b68526058efa5f325fcbf.zip rockbox-36355a5c6646ce51969b68526058efa5f325fcbf.tar.gz rockbox-36355a5c6646ce51969b68526058efa5f325fcbf.tar.bz2 rockbox-36355a5c6646ce51969b68526058efa5f325fcbf.tar.xz | |
provide a temporary ROLO dummy when built for coldfire
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5742 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/rolo.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index 5b69c36..2d8a1c5 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 */ |