summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/src/fft.hcc
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-12-08 12:16:58 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-12-08 12:16:58 (GMT)
commit5a5bd9cb9c7f180c5c598b9068e1993ed3b6653f (patch)
treec65be6236faa85864ebccb1407618ee5708bb3f3 /Graphic_Equalizer/src/fft.hcc
parent1e60188664cab6ac66dd152b4541217dd0511d3a (diff)
downloadTASS-5a5bd9cb9c7f180c5c598b9068e1993ed3b6653f.zip
TASS-5a5bd9cb9c7f180c5c598b9068e1993ed3b6653f.tar.gz
TASS-5a5bd9cb9c7f180c5c598b9068e1993ed3b6653f.tar.bz2
Moved FFT specific define here instead of the configuration file.
Added include ifdef around debug as it shouldn't always be included.
Diffstat (limited to 'Graphic_Equalizer/src/fft.hcc')
-rw-r--r--Graphic_Equalizer/src/fft.hcc11
1 files changed, 10 insertions, 1 deletions
diff --git a/Graphic_Equalizer/src/fft.hcc b/Graphic_Equalizer/src/fft.hcc
index d2dc2f3..43a1bde 100644
--- a/Graphic_Equalizer/src/fft.hcc
+++ b/Graphic_Equalizer/src/fft.hcc
@@ -23,8 +23,12 @@
#include "audio.hch"
#include "weights_256.hch"
#include "configuration.hch"
-#include "debug.hch"
#include "xilinxmult.hch"
+#include "fft.hch"
+
+#if HAVE_DEBUG
+ #include "debug.hch"
+#endif
/* Define two multi-port RAMs for FFT calculation; one for real and one for imaginary values
* Extra block RAM settings are defined to make sure read and write actions can be performed
@@ -59,6 +63,11 @@ mpram
// multiplication factors for equalizer function
ram signed 7 eq_settings[16] = {0,2,4,7,10,13,16,19,22,26,30,35,41,48,55,63};
+#if HARDWARE_MULTIPLY
+#define DC_COMPONENT 0
+#else
+#define DC_COMPONENT 8470527
+#endif
/*! \fn macro proc multiply(result, op_a, op_b);
* \brief Procedure used for multiply-ing