diff options
Diffstat (limited to 'firmware')
-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 5b69c3679f..2d8a1c54c7 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | 19 | ||
20 | #include "config.h" | ||
20 | #include "lcd.h" | 21 | #include "lcd.h" |
21 | #include "kernel.h" | 22 | #include "kernel.h" |
22 | #include "sprintf.h" | 23 | #include "sprintf.h" |
@@ -28,6 +29,8 @@ | |||
28 | #include "string.h" | 29 | #include "string.h" |
29 | #include "buffer.h" | 30 | #include "buffer.h" |
30 | 31 | ||
32 | #if CONFIG_CPU != MCF5249 /* FIX: this doesn't work on iRiver yet */ | ||
33 | |||
31 | #define IRQ0_EDGE_TRIGGER 0x80 | 34 | #define IRQ0_EDGE_TRIGGER 0x80 |
32 | 35 | ||
33 | static void rolo_error(const char *text) | 36 | static void rolo_error(const char *text) |
@@ -130,14 +133,22 @@ int rolo_load(const char* filename) | |||
130 | system_init(); /* Initialize system for restart */ | 133 | system_init(); /* Initialize system for restart */ |
131 | i2c_init(); /* Init i2c bus - it seems like a good idea */ | 134 | i2c_init(); /* Init i2c bus - it seems like a good idea */ |
132 | ICR = IRQ0_EDGE_TRIGGER; /* Make IRQ0 edge triggered */ | 135 | ICR = IRQ0_EDGE_TRIGGER; /* Make IRQ0 edge triggered */ |
133 | TSTR = 0xE0; /* disable all timers */ | 136 | TSTR = 0xE0; /* disable all timers */ |
134 | /* model-specific de-init, needed when flashed */ | 137 | /* model-specific de-init, needed when flashed */ |
135 | /* Especially the Archos software is picky about this */ | 138 | /* Especially the Archos software is picky about this */ |
136 | #if defined(ARCHOS_RECORDER) || defined(ARCHOS_RECORDERV2) || defined(ARCHOS_FMRECORDER) | 139 | #if defined(ARCHOS_RECORDER) || defined(ARCHOS_RECORDERV2) || \ |
137 | PAIOR = 0x0FA0; | 140 | defined(ARCHOS_FMRECORDER) |
141 | PAIOR = 0x0FA0; | ||
138 | #endif | 142 | #endif |
139 | 143 | ||
140 | rolo_restart(mp3buf, ramstart, length); | 144 | rolo_restart(mp3buf, ramstart, length); |
141 | 145 | ||
142 | return 0; /* this is never reached */ | 146 | return 0; /* this is never reached */ |
143 | } | 147 | } |
148 | #else /* CONFIG_CPU != MCF5249 */ | ||
149 | int rolo_load(const char* filename) | ||
150 | { | ||
151 | /* dummy */ | ||
152 | } | ||
153 | |||
154 | #endif /* CONFIG_CPU == MCF5249 */ | ||