params.h
1.32 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
/*
* 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_DATA_SIZE 0x20000 /* max size of data */
#define MAX_CHANNELS 48 /* max channels */
#define MAX_UPDATES 0x1000 /* max updates */
#define MAX_EVENTS 0x800 /* max events */
#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 */
/* target data */
#define SBK_DATA "../data/midi.sbk"
#define CTL_DATA "../data/wave.ctl"
#define TBL_DATA "../data/wave.tbl"
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
extern u8 _sbkSegmentRomStart[];
extern u8 _sbkSegmentRomEnd[];
extern u8 _ctlSegmentRomStart[];
extern u8 _ctlSegmentRomEnd[];
extern u8 _tblSegmentRomStart[];
extern u8 _tblSegmentRomEnd[];
typedef struct Params_st {
u32 once_check_sec;
u32 output_rate;
u32 max_data_size;
u32 max_channels;
u32 max_updates;
u32 max_events;
u32 max_acmd_length;
u32 audio_heap_size;
u32 max_buffer_size;
u32 max_buffer_num;
} Params;
extern Params params;
extern void SetParameters(void);
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
#endif /* _PARAMS_H_ */