summaryrefslogtreecommitdiffstats
path: root/FFT_Test/configuration.hch
blob: 32c6091b6bcaa3788bef1fdcbda5caaf49e88312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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 --- */