summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/src/main.hcc
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer/src/main.hcc')
-rw-r--r--Graphic_Equalizer/src/main.hcc16
1 files changed, 11 insertions, 5 deletions
diff --git a/Graphic_Equalizer/src/main.hcc b/Graphic_Equalizer/src/main.hcc
index 60eb71b..1afcd1d 100644
--- a/Graphic_Equalizer/src/main.hcc
+++ b/Graphic_Equalizer/src/main.hcc
@@ -1,3 +1,4 @@
+
/*! \file main.hcc
*
* \section generic Message build up information and more
@@ -26,14 +27,18 @@
/******** Application Includes ********/
#include "configuration.hch"
+#include "audio.hch"
#include "mouse_shared.hch"
#include "mouse.hch"
#include "eventhandler_shared.hch"
#include "eventhandler.hch"
-#include "audio.hch"
#include "display.hch"
#include "smartmedia.hch"
+#include "config.hch"
+#include "fft.hch"
+#include "runfft.hch"
+
#if HAVE_DEBUG
#include "debug.hch"
#endif
@@ -60,7 +65,7 @@ void main(void) {
mousedata_t mousedata;
events_t events;
- mpram equalizer_levels_t equalizer_levels;
+ audiodata_t audiodata;
unsigned 1 result;
/*
@@ -131,7 +136,7 @@ void main(void) {
* data folowed by our main program loop.
*/
result = smartmedia_init();
- if (!result) {
+ if (0 == result) {
#endif
#if HAVE_DEBUG
print_string("Loading Skin ...");
@@ -142,6 +147,7 @@ void main(void) {
print_string("Done Loading Skin ...");
print_eol();
print_string("Running Main Application.");
+ print_eol();
#endif
/*
@@ -154,8 +160,8 @@ void main(void) {
* should ever return.
*/
mouse_main(mousedata);
- display_main(events, mousedata, ClockRate, VideoOut, RAM_BANK0);
- eventhandler_main(equalizer_levels, events, mousedata);
+ display_main(audiodata, events, mousedata, ClockRate, VideoOut, RAM_BANK0);
+ eventhandler_main(&audiodata, &events, &mousedata);
audio_main(AudioIn, AudioOut);
}
#if HAVE_SMARTMEDIA