summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/configuration.hch
blob: 6e9480a73c1ce344fd7cf19566749789115bd409 (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 0



/*
 * 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_SMART_MEDIA 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 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	0x04b000
#define SIZE_HELP	0x04b000
#define SIZE_MASK_SKIN	0x019000
#define SIZE_MASK_HELP	0x019000



/*
 * Here we setup the start and end address for the various components.
 */
#define ADDR_SKIN_START	0x000000
#define ADDR_SKIN_END	(ADDR_SKIN_START +SIZE_SKIN)

#define ADDR_HELP_START	0x04b001
#define ADDR_HELP_END	(ADDR_HELP_START +SIZE_HELP)

#if LARGE_DATA_BLOCK
	#define SM_ADDR_OFFSET	0x084000

	#define SM_ADDR_SKIN_START	SM_ADDR_OFFSET
	#define SM_ADDR_SKIN_END	(SM_ADDR_SKIN_START +(SIZE_SKIN *3))
	#define SM_ADDR_SKIN_MASK_START	(SM_ADDR_SKIN_END +1)
	#define SM_ADDR_SKIN_MASK_END	(SM_ADDR_OFFSET +SIZE_MASK_SKIN)

	#define SM_ADDR_HELP_START	(SM_ADDR_SKIN_MASK_END +1)
	#define SM_ADDR_HELP_END	(SM_ADDR_HELP_START +(SIZE_HELP *3))
	#define SM_ADDR_HELP_MASK_START	(SM_ADDR_HELP_END +1)
	#define SM_ADDR_HELP_MASK_END	(SM_ADDR_OFFSET +SIZE_MASK_HELP)
#else
	#define SM_ADDR_SKIN_START	0x084000
	#define SM_ADDR_SKIN_MASK_START	0x168000
	#define SM_ADDR_HELP_START	0x1b4000
	#define SM_ADDR_HELP_START	0x298000

	#define SM_ADDR_SKIN_END	(SM_ADDR_SKIN_START +(SIZE_SKIN *3))
	#define SM_ADDR_SKIN_MASK_END	(SM_ADDR_SKIN_END +(SIZE_MASK_SKIN *3))
	#define SM_ADDR_HELP_END	(SM_ADDR_HELP_START +(SIZE_HELP *3))
	#define SM_ADDR_HELP_MASK_END	(SM_ADDR_SKIN_MASK_END +(SIZE_MASK_HELP *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 --- */