summaryrefslogtreecommitdiffstats
path: root/FFT_Test
diff options
context:
space:
mode:
authorMarcel Lauwerijssen <paranoya@morphcore.com>2004-11-25 11:08:41 (GMT)
committerMarcel Lauwerijssen <paranoya@morphcore.com>2004-11-25 11:08:41 (GMT)
commit67c4817e31ec7a391e7fb2de118841f3bcc9edeb (patch)
tree0b886924f0109486e03392921e8666ad235dbbcf /FFT_Test
parent9893489d45b1cdb284f42231a8407fe34cf0b0f3 (diff)
downloadTASS-67c4817e31ec7a391e7fb2de118841f3bcc9edeb.zip
TASS-67c4817e31ec7a391e7fb2de118841f3bcc9edeb.tar.gz
TASS-67c4817e31ec7a391e7fb2de118841f3bcc9edeb.tar.bz2
added general config file
Diffstat (limited to 'FFT_Test')
-rw-r--r--FFT_Test/configuration.hch116
1 files changed, 116 insertions, 0 deletions
diff --git a/FFT_Test/configuration.hch b/FFT_Test/configuration.hch
new file mode 100644
index 0000000..32c6091
--- /dev/null
+++ b/FFT_Test/configuration.hch
@@ -0,0 +1,116 @@
+/*! \file configuration.hch
+ *
+ * \section generic Configuration for the entire application
+ *
+ * \section project Project information.
+ * Project Graphic Equalizer\n
+ * \author O.M. Schinagl
+ * \date 20041101
+ * \version 0.1
+ *
+ * \section copyright Copyright
+ * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
+ *
+ * \section history Change history
+ * 20041101: O.M. Schinagl\n Initial version
+ *
+ ********************************************************************/
+
+#ifndef _CONFIGURATION_HCH
+#define _CONFIGURATION_HCH 1
+
+/*
+ * To print debug information on the RS232 port set this define.
+ */
+#define HAVE_DEBUG 1
+
+
+
+/*
+ * If we don't want to use the SmartMedia (and therefor fill the memory
+ * with simple static data) set this to 0. Otherwise 1 will load the smartmedia
+ * routines. To only load the mask and not the entire data set USE_MASK_ONLY to
+ * 1. 0 will load all bitmaps.
+ */
+#define HAVE_SMARTMEDIA 0
+#define USE_MASK_ONLY 0
+#define SKIP_LOAD 1
+
+
+
+/*
+ * Here we set the various sizes of the data in use. Do not round this values
+ * in anyway! For example, 640 pixels times 480 pixels is 307200 (4b000) pixels
+ * total.
+ */
+#define SIZE_SKIN 0x04afff
+#define SIZE_HELP 0x04afff
+#define SIZE_GRAPH 0x04afff
+#define SIZE_SKINMASK 0x018fff
+#define SIZE_HELPMASK 0x018fff
+#define SIZE_GRAPHMASK 0x018fff
+
+#define SIZE_PRESET 0x0001c0
+
+
+
+/*
+ * Here we setup the start and end address for the various components.
+ */
+#define ADDRESS_SKIN_START 0x000000
+#define ADDRESS_SKIN_END (ADDRESS_SKIN_START +SIZE_SKIN)
+
+#define ADDRESS_HELP_START 0x04b000
+#define ADDRESS_HELP_END (ADDRESS_HELP_START +SIZE_HELP)
+
+#define ADDRESS_GRAPHMASK_START 0x096000
+#define ADDRESS_GRAPHMASK_END (ADDRESS_GRAPHMASK_START +SIZE_GRAPH)
+
+#define ADDRESS_PRESET_DEMO_START 0x0e1000
+#define ADDRESS_PRESET_DEMO_END (ADDRESS_PRESET_DEMO_START +SIZE_PRESET)
+#define ADDRESS_PRESET_RESET_START 0x0e11c0
+#define ADDRESS_PRESET_RESET_END (ADDRESS_PRESET_RESET_START +SIZE_PRESET)
+
+#define SMARTMEDIA_ADDRESS_SKIN_START 0x084000 /* Block: 33 */
+#define SMARTMEDIA_ADDRESS_SKINMASK_START 0x168000 /* Block: 90 */
+#define SMARTMEDIA_ADDRESS_HELP_START 0x1b4000 /* Block: 109 */
+#define SMARTMEDIA_ADDRESS_HELPMASK_START 0x298000 /* Block: 166 */
+#define SMARTMEDIA_ADDRESS_GRAPHMASK_START 0x2e4000 /* Block: 185 */
+
+#define SMARTMEDIA_ADDRESS_PRESET_DEMO_START 0x330000 /* Block: 204 */
+#define SMARTMEDIA_ADDRESS_PRESET_RESET_START 0x340000 /* Block: 205 */
+
+#define SMARTMEDIA_ADDRESS_SKIN_END (SMARTMEDIA_ADDRESS_SKIN_START +(SIZE_SKIN *3))
+#define SMARTMEDIA_ADDRESS_SKINMASK_END (SMARTMEDIA_ADDRESS_SKINMASK_START +(SIZE_SKINMASK *3))
+#define SMARTMEDIA_ADDRESS_HELP_END (SMARTMEDIA_ADDRESS_HELP_START +(SIZE_HELP *3))
+#define SMARTMEDIA_ADDRESS_HELPMASK_END (SMARTMEDIA_ADDRESS_HELPMASK_START +(SIZE_HELPMASK *3))
+#define SMARTMEDIA_ADDRESS_GRAPHMASK_END (SMARTMEDIA_ADDRESS_GRAPHMASK_START +(SIZE_GRAPHMASK *3))
+
+#define SMARTMEDIA_ADDRESS_PRESET_DEMO_END (SMARTMEDIA_ADDRESS_PRESET_DEMO_START +(SIZE_PRESET))
+#define SMARTMEDIA_ADDRESS_PRESET_RESET_END (SMARTMEDIA_ADDRESS_PRESET_RESET_START +(SIZE_PRESET))
+
+
+
+/*
+ * FFT specific. TODO: Clean Up!
+ */
+#define USE_RUNFFT 1
+#define HARDWARE_MULTIPLY 1
+#define NUMBER_OF_COLUMNS 8
+#define NUMBER_OF_POINTS (1<<NUMBER_OF_COLUMNS)
+#define NUMBER_OF_FREQUENCIES (NUMBER_OF_POINTS>>1)
+#define PERFORM_FFT_CALCULATION 0
+#define USE_UNSIGNED_AUDIO 0
+#define PRINT_DEBUG 0
+
+#if HARDWARE_MULTIPLY
+#define DC_COMPONENT 0
+#else
+#define DC_COMPONENT 8470527
+#endif
+
+#else
+#error "ERROR file configuration.hch multiple times included"
+#endif /* --- _CONFIGURATION_HCH --- */
+
+