oem_BlueSea.h 5.19 KB
#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_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
//#define OPL_MODE_WIRELESS_MIC  // use optek link lib:optek_link_5ms_for_mic.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)||\
    (defined OPL_MODE_WIRELESS_MIC && defined OPL_SLAVE_ENBALE))
#define LC3_ENCODE_ENABLE
#endif

#if ((defined OPL_MODE_TWO_WAY) ||\
    (defined OPL_MODE_SINGLE_WAY && defined OPL_SLAVE_ENBALE)||\
    (defined OPL_MODE_WIRELESS_MIC && defined OPL_MASTER_ENABLE))
#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_