summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/configuration.hch
blob: c02a7e26e31e356cdc285ff6ded40dac35e59659 (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
/*! \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 1



/*
 * Data can be arranged in two ways. Either as one large blok of continuous
 * data, or each segment is stored seperatly at its own address. If set to 1
 * we'll asume one large continuous blok.
 */
#define LARGE_DATA_BLOCK 0



/*
 * 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	0x04b000
#define SIZE_HELP	0x04b000
#define SIZE_SKINMASK	0x019000
#define SIZE_HELPMASK	0x019000



/*
 * 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	0x04b001
#define ADDRESS_HELP_END	(ADDRESS_HELP_START +SIZE_HELP)

#if LARGE_DATA_BLOCK
	#define SMARTMEDIA_ADDRESS_OFFSET		0x084000

	#define SMARTMEDIA_ADDRESS_SKIN_START		SMARTMEDIA_ADDRESS_OFFSET
	#define SMARTMEDIA_ADDRESS_SKIN_END		(SMARTMEDIA_ADDRESS_SKIN_START +(SIZE_SKIN *3))
	#define SMARTMEDIA_ADDRESS_SKINMASK_START	(SMARTMEDIA_ADDRESS_SKIN_END +1)
	#define SMARTMEDIA_ADDRESS_SKINMASK_END		(SMARTMEDIA_ADDRESS_SKINMASK_START +SIZE_SKINMASK)

	#define SMARTMEDIA_ADDRESS_HELP_START		(SMARTMEDIA_ADDRESS_SKINMASK_END +1)
	#define SMARTMEDIA_ADDRESS_HELP_END		(SMARTMEDIA_ADDRESS_HELP_START +(SIZE_HELP *3))
	#define SMARTMEDIA_ADDRESS_HELPMASK_START	(SMARTMEDIA_ADDRESS_HELP_END +1)
	#define SMARTMEDIA_ADDRESS_HELPMASK_END		(SMARTMEDIA_ADDRESS_HELPMASK_START +SIZE_HELPMASK)
#else
	#define SMARTMEDIA_ADDRESS_SKIN_START		0x084000
	#define SMARTMEDIA_ADDRESS_SKINMASK_START	0x168000
	#define SMARTMEDIA_ADDRESS_HELP_START		0x1b4000
	#define SMARTMEDIA_ADDRESS_HELPMASK_START	0x298000

	#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_END +(SIZE_HELPMASK *3))
#endif



/*
 * Set the color for various items that will be drawn on screen.
 */
#define PIXEL_VOLUME_YAXIS (0x00ff00)

#else
#error "ERROR file configuration.hch multiple times included"
#endif /* --- _CONFIGURATION_HCH --- */