params.h
4.77 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
* params.h
*/
#ifndef _PARAMS_H_
#define _PARAMS_H_
#define ONCE_CHECK_SEC 3*60 /* play time a data */
#define OUTPUT_RATE 32000 /* output rate */
#define MAX_CHANNELS 48 /* max channels */
#define MAX_UPDATES 0x1000 /* max updates */
#define MAX_ACMD_LENGTH 0x4000 /* max ACMD length */
#define AUDIO_HEAP_SIZE 0x200000
#define MAX_BUFFER_SIZE 0x1000 /* each DMA buffer size */
#define MAX_BUFFER_NUM 0x100 /* number of DMA buffers */
/* 1st data */
#define BIN_DATA1 "../data/demo1_1.bin"
#define PTR_DATA1 "../data/demo1_1.ptr"
#define WBK_DATA1 "../data/demo1_1.wbk"
/* 2nd data */
#define BIN_DATA2 "../data/demo1_2.bin"
#define PTR_DATA2 "../data/demo1_1.ptr"
#define WBK_DATA2 "../data/demo1_1.wbk"
/* 3rd data */
#define BIN_DATA3 "../data/demo2_1.bin"
#define PTR_DATA3 "../data/demo2_1.ptr"
#define WBK_DATA3 "../data/demo2_1.wbk"
/* 4th data */
#define BIN_DATA4 "../data/demo2_2.bin"
#define PTR_DATA4 "../data/demo2_1.ptr"
#define WBK_DATA4 "../data/demo2_1.wbk"
/* 5th data */
// #define BIN_DATA5
// #define PTR_DATA5
// #define WBK_DATA5
/* 6th data */
// #define BIN_DATA6
// #define PTR_DATA6
// #define WBK_DATA6
/* 7th data */
// #define BIN_DATA7
// #define PTR_DATA7
// #define WBK_DATA7
/* 8th data */
// #define BIN_DATA8
// #define PTR_DATA8
// #define WBK_DATA8
/* 9th data */
// #define BIN_DATA9
// #define PTR_DATA9
// #define WBK_DATA9
/* 10th data */
// #define BIN_DATA10
// #define PTR_DATA10
// #define WBK_DATA10
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
#if defined(BIN_DATA1) && defined(PTR_DATA1) && defined (WBK_DATA1)
extern u8 _bin1SegmentRomStart[];
extern u8 _bin1SegmentRomEnd[];
extern u8 _ptr1SegmentRomStart[];
extern u8 _ptr1SegmentRomEnd[];
extern u8 _wbk1SegmentRomStart[];
extern u8 _wbk1SegmentRomEnd[];
#endif
#if defined(BIN_DATA2) && defined(PTR_DATA2) && defined (WBK_DATA2)
extern u8 _bin2SegmentRomStart[];
extern u8 _bin2SegmentRomEnd[];
extern u8 _ptr2SegmentRomStart[];
extern u8 _ptr2SegmentRomEnd[];
extern u8 _wbk2SegmentRomStart[];
extern u8 _wbk2SegmentRomEnd[];
#endif
#if defined(BIN_DATA3) && defined(PTR_DATA3) && defined (WBK_DATA3)
extern u8 _bin3SegmentRomStart[];
extern u8 _bin3SegmentRomEnd[];
extern u8 _ptr3SegmentRomStart[];
extern u8 _ptr3SegmentRomEnd[];
extern u8 _wbk3SegmentRomStart[];
extern u8 _wbk3SegmentRomEnd[];
#endif
#if defined(BIN_DATA4) && defined(PTR_DATA4) && defined (WBK_DATA4)
extern u8 _bin4SegmentRomStart[];
extern u8 _bin4SegmentRomEnd[];
extern u8 _ptr4SegmentRomStart[];
extern u8 _ptr4SegmentRomEnd[];
extern u8 _wbk4SegmentRomStart[];
extern u8 _wbk4SegmentRomEnd[];
#endif
#if defined(BIN_DATA5) && defined(PTR_DATA5) && defined (WBK_DATA5)
extern u8 _bin5SegmentRomStart[];
extern u8 _bin5SegmentRomEnd[];
extern u8 _ptr5SegmentRomStart[];
extern u8 _ptr5SegmentRomEnd[];
extern u8 _wbk5SegmentRomStart[];
extern u8 _wbk5SegmentRomEnd[];
#endif
#if defined(BIN_DATA6) && defined(PTR_DATA6) && defined (WBK_DATA6)
extern u8 _bin6SegmentRomStart[];
extern u8 _bin6SegmentRomEnd[];
extern u8 _ptr6SegmentRomStart[];
extern u8 _ptr6SegmentRomEnd[];
extern u8 _wbk6SegmentRomStart[];
extern u8 _wbk6SegmentRomEnd[];
#endif
#if defined(BIN_DATA7) && defined(PTR_DATA7) && defined (WBK_DATA7)
extern u8 _bin7SegmentRomStart[];
extern u8 _bin7SegmentRomEnd[];
extern u8 _ptr7SegmentRomStart[];
extern u8 _ptr7SegmentRomEnd[];
extern u8 _wbk7SegmentRomStart[];
extern u8 _wbk7SegmentRomEnd[];
#endif
#if defined(BIN_DATA8) && defined(PTR_DATA8) && defined (WBK_DATA8)
extern u8 _bin8SegmentRomStart[];
extern u8 _bin8SegmentRomEnd[];
extern u8 _ptr8SegmentRomStart[];
extern u8 _ptr8SegmentRomEnd[];
extern u8 _wbk8SegmentRomStart[];
extern u8 _wbk8SegmentRomEnd[];
#endif
#if defined(BIN_DATA9) && defined(PTR_DATA9) && defined (WBK_DATA9)
extern u8 _bin9SegmentRomStart[];
extern u8 _bin9SegmentRomEnd[];
extern u8 _ptr9SegmentRomStart[];
extern u8 _ptr9SegmentRomEnd[];
extern u8 _wbk9SegmentRomStart[];
extern u8 _wbk9SegmentRomEnd[];
#endif
#if defined(BIN_DATA10) && defined(PTR_DATA10) && defined (WBK_DATA10)
extern u8 _bin10SegmentRomStart[];
extern u8 _bin10SegmentRomEnd[];
extern u8 _ptr10SegmentRomStart[];
extern u8 _ptr10SegmentRomEnd[];
extern u8 _wbk10SegmentRomStart[];
extern u8 _wbk10SegmentRomEnd[];
#endif
typedef struct Params_st {
u32 once_check_sec;
u32 output_rate;
u32 max_channels;
u32 max_updates;
u32 max_acmd_length;
u32 audio_heap_size;
u32 max_buffer_size;
u32 max_buffer_num;
} Params;
extern u8 *bin_start[];
extern u8 *bin_end[];
extern u8 *ptr_start[];
extern u8 *ptr_end[];
extern u8 *wbk_start[];
extern u8 *wbk_end[];
extern Params params;
extern void SetParameters(void);
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
#endif /* _PARAMS_H_ */