oem_BlueSea.h
4.98 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
#ifndef _OEM_DRAGON_H_
#define _OEM_DRAGON_H_
#ifdef BLUESEA_SDK
#define LITTLE_ENDIAN
//#define SYSTEM_CRASH_CHECK_ENABLE
//#define OPTEK_SRC_VER
//#define OPTEK_DSRC_ENABLE
#define OPTEK_DSRC_ENABLE_LIB
#define CODEC_LIB_IN_MASK_ROM
#define NO_CD_APPLICATION //no cd application
#define MULTI_LANGUAGE
#define USB_HOST_ENABLE
#define IPOD_USB_AUDIO_CHARGE_ONLY
//link with libusbhost_msc_and_audio.a and libusbhost_audio_driver.a, not source files.
//#define USB_HOST_LIB
#ifdef USB_HOST_ENABLE
//#define USB_HOST_AUDIO_ENABLE
#endif
/****** For USB Host Audio, disable USB_DEV_ENABLE !!! ******/
#define USB_DEV_ENABLE
#define USB_SPEAKER
#define USB_DEV_LIB
//#define HID_FUNC_ENABLE
#define USB_INT_CHANGEs_TO_LEVEL1
#define FOR_ESD_PROTECT
#define FILE_SYSTEM_ENABLE
//#define FILE_DELETE_ENABLE
#define FAST_SEARCH_ENABLE
#define FOLDER_SWITCH
//#define AUTO_PLAY_ENABLE
#define MP3_DECODE_ENABLE
//#define WMA_DECODE_ENABLE //not complete
//#define MP3_ENCODE_ENABLE
//#define RECORD_ENABLE //pls note re_alloc record fifo
//#define ADC_RECORD
#define AUDIO_OUT_BUF_IS_HALF_OF_MP3_ENC_FRAME_SAMPLE
#define WAV_DEC
//#define FLAC_DEC
//extra codec
//#define DOLBY_AC3_DEC
#define DD_AC3_DEC_16BIT_OUT
//#define DOLBY_TEST_BOARD
//#define DOLBY_AC3_DEC_TEST
//#define AAC_DEC
//#define AAC_LC_w_LATM_DEC /*iOS A2DP*/
//#define AAC_MCH_DEC /*multi chan aac, mainly for TV broadcasting*/
//#define AAC_DABPLUS
//#define SD_ENABLE
//#define SD_BUS_1_BIT
//#define SD_DMA_TRANSFER //?
#define SPDIF_ENABLE
//#define SPDIF_OUTPUT_ENABLE
#ifdef DOLBY_AC3_DEC_TEST
//#define SPDIF_OUTPUT_ENABLE
#endif
//#define HDMI_CEC_BY_OPTEK //ARC/CEC
#if 1//def HDMI_CEC_BY_OPTEK
#define TIMER1_ENABLE
#endif
#define BT_HCI_ENABLE
#define RF_USE_OTK5288
//#define BT_HFP_ENABLE //for calling
#define BT_RDA_RADIO
//#define BT_OUTOPLAY_ENABLE
#define BT_HCI_RELINK
#define BT_VOLUME_SET
#define BT_VOLUME_SYC
//#define BT_ID3_DISPLAY_EANBLE
//define BT fucntion, should be same as in bt_def.h
#define BT_TX_CHAN /*TWS/Multi Speaker/BT HEADPHONE*/
#define BT_MULTI_LINK /*Multi party bt connetion*/
//#define BT_W_EEPROM
#define BT_RELINK_ENABLE
#define BT_PA_ENABLE
/***********************OPTEK LINK 2.0******************************/
//#define OPTEK_LINK_ENABLE
#ifdef OPTEK_LINK_ENABLE
#define OPL_MASTER_ENABLE
#define OPL_SLAVE_ENBALE
/*********Choose one*************/
//#define OPL_MODE_SINGLE_WAY // use optek link lib:optek_link_5ms.a
#define OPL_MODE_TWO_WAY // use optek link lib:optek_link_5ms.a
//#define OPL_MODE_SWF // use optek link lib:optek_link_5ms_for_swf.a
#ifdef OPL_MODE_TWO_WAY
#define UPSTREAM_SAMPLERATE_48k
#endif
#if (defined OPL_MODE_TWO_WAY || (defined OPL_MODE_SINGLE_WAY && defined OPL_MASTER_ENABLE))
#define LC3_ENCODE_ENABLE
#endif
#if defined OPL_MODE_TWO_WAY || (defined OPL_MODE_SINGLE_WAY && defined OPL_SLAVE_ENBALE)
#define LC3_DECODE_ENABLE
#define LC3_ENCODE_ENABLE
#endif
#endif
#define SL_ROLE_MASTER (1<<0)
#define SL_ROLE_SLAVE (1<<1)
#define SL_ROLE_BT (1<<2)
#define SL_ROLE_UNDEF (0)
/*&&&&&&&&&&&&&&&&&&&&&&OPTEK LINK END&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*/
//for BT
#define SBC_DEC
//#define SBC_ENC
#ifdef BT_HFP_ENABLE
#define mSBC_DEC
#define mSBC_ENC
#endif
#define PCM_DOWNSAMPLE_DEC
#define FLASH_PROGRAM_ENABLE
#define SPI_FLASH_WINBOND
#define UPGRADE_PROJECT_ENABLE
#define UPGRADE_PROJECT_FIRST_START
#define UPGRADE_PROJECT_ENABLE
#define UPGRADE_BY_USB
//#define UPGRADE_BY_SD
//#define UPGRADE_BY_BT
#define AUDIO_PROCESSOR
#define AUDIO_OPTEK_DAPP
#define AUDIO_CODEC_USED_VOL
//#define OPTEK_DSP_MX1 //Kalaok
#ifdef OPTEK_DSP_MX1
/*********Delay module*********/
//#define MIC_REVERB
//#define MIC_ECHO
//#define MIC_DODGE_ENABLE
//#define MIC_VOCAL_REMOVER_ENABLE
//#define MIC_EQ_ENABLE//MIC_HOWLING_SUPPRESSION_ENABLE
#endif
//#define PROMPT_TONE_ENABLE
//#define REMOTE_ENABLE
//#define POWER_KEY_ENABLE
//#define LOW_POWER_MODE //Close don't need to be current
//#define LOW_CONSUMPTION_MODE //OPEN it to reduce energy dissipation
//#define MIC_INPUT_FIX_CHANNEL_L
#define DSPEQ_TUNING_ENABLE //Optek DspTools use UART0 tuning
#define DSPEQ_SETTING_ENABLE //Optek eq init
#if 1
#define UART0_ENABLE
#define UART0_INT_ENABLE
#define UART0_TX_FIFO_ENABLE
#define UART0_TX_ENABLE
#ifdef DSPEQ_TUNING_ENABLE
#define UART0_RX_ENABLE
#endif
//#define UART0_TX_DMA
//#define UART0_RX_DMA
#define UART0_USED_FOR_UI_DEBUG
//#define UART0_USED_FOR_APP_UI
#endif
#if 0
#define UART1_ENABLE
#define UART1_INT_ENABLE
//#define UART1_TX_FIFO_ENABLE
//#define UART1_TX_ENABLE
#ifdef DSPEQ_TUNING_ENABLE
#define UART1_RX_ENABLE
#endif
//#define UART1_RX_FIFO_ENABLE
//#define UART1_USED_FOR_UI_DEBUG
//#define UART1_USED_FOR_APP_UI
#endif
#if 0
#define UART2_ENABLE
#define UART2_INT_ENABLE
#define UART2_TX_FIFO_ENABLE
#define UART2_TX_ENABLE
//#define UART2_RX_ENABLE
//#define UART2_RX_FIFO_ENABLE
#define UART2_USED_FOR_UI_DEBUG
//#define UART2_USED_FOR_APP_UI
#endif
#endif //BLUESEA_SDK
#endif //_OEM_DRAGON_H_