summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/smartmedia_shared.hch
blob: 091c0f988cddcc5e2186475f18b6c983ac5a3f32 (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*! \file smartmedia_shared.hch
 *
 * \section generic SmartMedia Shared
 *
 * \section project Project information.
 * Project Graphic Equalizer\n
 * \author O.M. Schinagl
 * \date 20041202
 * \version 0.1
 *
 * \section copyright Copyright
 * Copyright 2004 Koninklijke Philips Electronics N.V. All rights reserved
 *
 * \section history Change history
 * 20041202: O.M. Schinagl\n	Initial version
 *
 ********************************************************************/
 
#ifndef _SMARTMEDIA_SHARED_HCH
#define _SMARTMEDIA_SHARED_HCH 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			0x004afff 	/* Number of pixels */

#define SIZE_HELP			0x004afff 	/* Number of pixels */

#define SIZE_GRAPH			0x004afff 	/* Number of pixels */

#define SIZE_ABOUT_TOP			0x000e989	/* Number of pixels */

#define SIZE_ABOUT_BOTTOM		0x000890b	/* Number of pixels */

#define SIZE_AUDIO_PLAYER_BUTTON 	0x0001740	/* Number of pixels */

#define SIZE_INPUT_SELECT_TEXT	 	0x00001bd	/* Number of pixels */

#define SIZE_TRACK1			0x108D500	/* Number of bytes */
#define SIZE_TRACK2			0x110A0D8	/* Number of bytes */
#define SIZE_TRACK3			0x1422300	/* Number of bytes */

#define SIZE_PRESET			384		/* Number of elements */

#define NUMBER_OF_TRACKS		3		/* Number of audio tracks*/

/*
 * Here we setup the start and end address for the various components.
 */

#define SMARTMEDIA_ADDRESS_OFFSET 0x3a4000	/* Block:  233 */

#define SMARTMEDIA_ADDRESS_CONFIGURATION		(SMARTMEDIA_ADDRESS_OFFSET +0x000000) /* Block: 233 */
#define SMARTMEDIA_ADDRESS_PRESET_DEMO_START		(SMARTMEDIA_ADDRESS_OFFSET +0x004000) /* Block: 234 */
#define SMARTMEDIA_ADDRESS_PRESET_RESET_START		(SMARTMEDIA_ADDRESS_OFFSET +0x008000) /* Block: 235 */

#define SMARTMEDIA_ADDRESS_SKIN_START			(SMARTMEDIA_ADDRESS_OFFSET +0x00c000) /* Block: 236 */
#define SMARTMEDIA_ADDRESS_HELP_START			(SMARTMEDIA_ADDRESS_OFFSET +0x13c000) /* Block: 312 */
#define SMARTMEDIA_ADDRESS_GRAPH_START			(SMARTMEDIA_ADDRESS_OFFSET +0x26c000) /* Block: 488 */

#define SMARTMEDIA_ADDRESS_TOP_FONTYS_START		(SMARTMEDIA_ADDRESS_OFFSET +0x2b8000) /* Block: 407 */
#define SMARTMEDIA_ADDRESS_TOP_TASS_START		(SMARTMEDIA_ADDRESS_OFFSET +0x2f8000) /* Block: 423 */
#define SMARTMEDIA_ADDRESS_TOP_TRANSFER_START		(SMARTMEDIA_ADDRESS_OFFSET +0x338000) /* Block: 439 */
#define SMARTMEDIA_ADDRESS_TOP_CELOXICA_START		(SMARTMEDIA_ADDRESS_OFFSET +0x378000) /* Block: 455 */
#define SMARTMEDIA_ADDRESS_TOP_DETAILS_START		(SMARTMEDIA_ADDRESS_OFFSET +0x3b8000) /* Block: 471 */

#define SMARTMEDIA_ADDRESS_BOTTOM_START			(SMARTMEDIA_ADDRESS_OFFSET +0x3f8000) /* Block: 487 */

#define SMARTMEDIA_ADDRESS_AUDIO_PLAYER_START		(SMARTMEDIA_ADDRESS_OFFSET +0x41C000) /* Block: 496 */

#define SMARTMEDIA_ADDRESS_INPUT_SELECT_TEXT_START	(SMARTMEDIA_ADDRESS_OFFSET +0x424000) /* Block: 498 */

#define SMARTMEDIA_ADDRESS_TRACK1_START			(SMARTMEDIA_ADDRESS_OFFSET +0x42C000) /* Block: 500 */
#define SMARTMEDIA_ADDRESS_TRACK2_START			(SMARTMEDIA_ADDRESS_OFFSET +0x14BC000) /* Block: 1560 */
#define SMARTMEDIA_ADDRESS_TRACK3_START			(SMARTMEDIA_ADDRESS_OFFSET +0x25C8000) /* Block: 2651 */


#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))

#define SMARTMEDIA_ADDRESS_SKIN_END			(SMARTMEDIA_ADDRESS_SKIN_START +(SIZE_SKIN << 2))
#define SMARTMEDIA_ADDRESS_HELP_END			(SMARTMEDIA_ADDRESS_HELP_START +(SIZE_HELP << 2))
#define SMARTMEDIA_ADDRESS_GRAPH_END			(SMARTMEDIA_ADDRESS_GRAPHMASK_START +SIZE_GRAPH)

#define SMARTMEDIA_ADDRESS_TOP_FONTYS_END		(SMARTMEDIA_ADDRESS_TOP_FONTYS_START +(SIZE_ABOUT_TOP << 2))
#define SMARTMEDIA_ADDRESS_TOP_TASS__END		(SMARTMEDIA_ADDRESS_TOP_TASS_START +(SIZE_ABOUT_TOP <<2))
#define SMARTMEDIA_ADDRESS_TOP_TRANSFER_END		(SMARTMEDIA_ADDRESS_TOP_TRANSFER_START +(SIZE_ABOUT_TOP <<2))
#define SMARTMEDIA_ADDRESS_TOP_CELOXICA_END		(SMARTMEDIA_ADDRESS_TOP_CELOXICA_START +(SIZE_ABOUT_TOP <<2))
#define SMARTMEDIA_ADDRESS_TOP_DETAILS_END		(SMARTMEDIA_ADDRESS_TOP_DETAILS_START +(SIZE_ABOUT_TOP <<2))

#define SMARTMEDIA_ADDRESS_BOTTOM_END			(SMARTMEDIA_ADDRESS_BOTTOM_START +(SIZE_ABOUT_BOTTOM <<2))

#define SMARTMEDIA_ADDRESS_AUDIO_PLAYER_END		(SMARTMEDIA_ADDRESS_AUDIO_PLAYER_START +(SIZE_AUDIO_PLAYER_BUTTON <<2))

#define SMARTMEDIA_ADDRESS_INPUT_SELECT_TEXT_END	(SMARTMEDIA_ADDRESS_INPUT_SELECT_TEXT_START +(SIZE_INPUT_SELECT_TEXT <<2))

#define SMARTMEDIA_ADDRESS_TRACK1_END	(SMARTMEDIA_ADDRESS_TRACK1_START +SIZE_TRACK1)
#define SMARTMEDIA_ADDRESS_TRACK2_END	(SMARTMEDIA_ADDRESS_TRACK2_START +SIZE_TRACK2)
#define SMARTMEDIA_ADDRESS_TRACK3_END	(SMARTMEDIA_ADDRESS_TRACK3_START +SIZE_TRACK3)

#define INDEX_PRESET_DEMO_START	0
#define INDEX_PRESET_DEMO_END		(INDEX_PRESET_DEMO_START +SIZE_PRESET)

#define INDEX_PRESET_RESET_START	384
#define INDEX_PRESET_RESET_END		(INDEX_PRESET_RESET_START +SIZE_PRESET)

#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_GRAPH_START		0x096000
#define ADDRESS_GRAPH_END		(ADDRESS_GRAPH_START +(SIZE_GRAPH >>2))

#define ADDRESS_ABOUT_TOP_FONTYS_START		0x0a8c00
#define ADDRESS_ABOUT_TOP_FONTYS_END		(ADDRESS_ABOUT_TOP_FONTYS_START +SIZE_ABOUT_TOP)
#define ADDRESS_ABOUT_TOP_TASS_START		0x0b758a
#define ADDRESS_ABOUT_TOP_TASS_END		(ADDRESS_ABOUT_TOP_TASS_START +SIZE_ABOUT_TOP)
#define ADDRESS_ABOUT_TOP_TRANSFER_START	0x0c5f14
#define ADDRESS_ABOUT_TOP_TRANSFER_END		(ADDRESS_ABOUT_TOP_TRANSFER_START +SIZE_ABOUT_TOP)
#define ADDRESS_ABOUT_TOP_CELOXICA_START	0x0d489e
#define ADDRESS_ABOUT_TOP_CELOXICA_END		(ADDRESS_ABOUT_TOP_CELOXICA_START +SIZE_ABOUT_TOP)
#define ADDRESS_ABOUT_TOP_DETAILS_START		0x0e3228
#define ADDRESS_ABOUT_TOP_DETAILS_END		(ADDRESS_ABOUT_TOP_DETAILS_START +SIZE_ABOUT_TOP)

#define ADDRESS_ABOUT_BOTTOM_START		0x0e3228
#define ADDRESS_ABOUT_BOTTOM_END		(ADDRESS_ABOUT_BOTTOM_START +SIZE_ABOUT_BOTTOM)

#define ADDRESS_AUDIO_PLAYER_START		0x0ebb34
#define ADDRESS_AUDIO_PLAYER_END		(ADDRESS_AUDIO_PLAYER_START +SIZE_AUDIO_PLAYER_BUTTON)

#define ADDRESS_INPUT_SELECT_TEXT_START		0x0ed275
#define ADDRESS_INPUT_SELECT_TEXT_END		(ADDRESS_INPUT_SELECT_TEXT_START +SIZE_INPUT_SELECT_TEXT)

#else
#error "ERROR file smartmedia_shared.hch multiple times included"
#endif /* --- _SMARTMEDIA_SHARED_HCH --- */