summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_Split/src/main.hcc
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-12-09 14:02:52 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-12-09 14:02:52 (GMT)
commit149677eca198a58c2a8f5c94eedc0d294f2ed82c (patch)
tree9cc103dd6f7fd0ba750338fae2c376ef35697e7d /Graphic_Equalizer_Split/src/main.hcc
parent1c33e0eb85916c8fe4f2e421c6d7eabbe56abe55 (diff)
downloadTASS-149677eca198a58c2a8f5c94eedc0d294f2ed82c.zip
TASS-149677eca198a58c2a8f5c94eedc0d294f2ed82c.tar.gz
TASS-149677eca198a58c2a8f5c94eedc0d294f2ed82c.tar.bz2
Added splitting defines.
Diffstat (limited to '')
-rw-r--r--Graphic_Equalizer_Split/src/main.hcc16
1 files changed, 15 insertions, 1 deletions
diff --git a/Graphic_Equalizer_Split/src/main.hcc b/Graphic_Equalizer_Split/src/main.hcc
index 78918b8..2c7b30a 100644
--- a/Graphic_Equalizer_Split/src/main.hcc
+++ b/Graphic_Equalizer_Split/src/main.hcc
@@ -90,10 +90,12 @@ void main(void) {
/*
* Primary task is to 'Run' several hardware simultaniously.
*/
+#if (!HAVE_LOADER_ONLY || BUILD_ALL)
PalVideoOutRun(VideoOut, ClockRate);
MouseRun(ClockRate);
PalAudioInRun(AudioIn, ClockRate);
PalAudioOutRun(AudioOut, ClockRate);
+#endif
PalPL2RAMRun(RAM_BANK0, ClockRate);
#if HAVE_SMARTMEDIA
/*
@@ -121,10 +123,12 @@ void main(void) {
print_string("Graphic Equalizer 2");
print_eol();
#endif
+#if (!HAVE_LOADER_ONLY || BUILD_ALL)
PalVideoOutEnable(VideoOut);
PalAudioInEnable(AudioIn);
PalAudioOutEnable(AudioOut);
audio_init(6, LINE_IN, SR_44100, AudioIn, AudioOut);
+#endif
#if HAVE_SMARTMEDIA
/*
* Once we properly setup the SmartMedia we load our
@@ -133,8 +137,17 @@ void main(void) {
result = smartmedia_init();
if (!result) {
#endif
+#if (HAVE_LOADER_ONLY || BUILD_ALL)
smartmedia_loaddata(&skindata);
-
+#endif
+ /*
+ * If we only load the 'loader' we need to reconfigure the FPGA to load the
+ * main application once this is done.
+ */
+#if (HAVE_LOADER_ONLY)
+ //RC200Reconfigure(SMARTMEDIA_ADDRESS_GE);
+#endif
+#if (!HAVE_LOADER_ONLY || HAVE_GRAPHIC_VISUALIZATION_ONLY || HAVE_GRAPHIC_EQUALIZER_ONLY || BUILD_ALL)
/*
* Main application starts here!
*/
@@ -149,6 +162,7 @@ void main(void) {
eventhandler_main(&audiodata, &events, &mousedata);
audio_main(audiodata, AudioIn, AudioOut);
}
+#endif
#if HAVE_SMARTMEDIA
} else {
#if HAVE_DEBUG