📄 winav.h
字号:
#define IC_VERSION_ID IC_VERSION_909P_B_X#define CS_UPGAP_NAME "UPG909PB.AP"// LLY2.60, don't support PSCAN output for CT909P/ CT95x serial IC#define NO_PSCAN_OUTPUT#endif // #if (DECODER_SYSTEM == DVD909P_B_EVAL)#if (DECODER_SYSTEM == DVD956A_DEV)// [Audio DAC] : Internal ADAC + CS4334 2 channel only DAC#define ENABLE_INTERNAL_ADAC#define AUDIO_DAC DAC_CS4334#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN#define SUPPORT_2_CHANNEL_ONLY// wyc2.77-909p, move this define to here.// #define SUPPORT_TFT_DIGITAL_MODE#ifdef SUPPORT_TFT_DIGITAL_MODE#define REGTABLE "VD\Regtable_CT956.H" //Set TFT include register table . Jeff VD 1.23 Add#else#define REGTABLE "VD\Regtable_CT955_DEV.H" //Set TFT include register table . Jeff VD 1.23 Add#endif// [Storage Type]#define STORAGE_TYPE SERIAL_FLASH// #define STORAGE_TYPE NO_STORAGE#define IC_VERSION_ID IC_VERSION_956A_DEV#define CS_UPGAP_NAME "UPG956AD.AP"// [Total pin define]#define PIN_216// LLY2.60, don't support PSCAN output for CT909P/ CT95x serial IC#define NO_PSCAN_OUTPUT// LLY2.75, always enable define "USE_GPA21_CTL_74244" for CT909P_P3 216 pin system board.#define USE_GPA21_CTL_74244#endif // #if (DECODER_SYSTEM == DVD956A_DEV)#if (DECODER_SYSTEM == DMP952A_EVAL)// [Audio DAC] : Internal ADAC + CS4334 2 channel only DAC#define USE_INTERNAL_ADAC_ONLY#define ENABLE_INTERNAL_ADAC#define AUDIO_DAC DAC_INTERNAL#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN#define REGTABLE "VD\Regtable_CT952.H" //Set TFT include register table . Jeff VD 1.23 Add// [Storage Type]#define STORAGE_TYPE SERIAL_FLASH// #define STORAGE_TYPE NO_STORAGE#define IC_VERSION_ID IC_VERSION_952A#define CS_UPGAP_NAME "UPG952A.AP"// LLY2.55, don't support SPDIF output.#define NO_SPDIF_OUTPUT// LLY2.60, don't support PSCAN output for CT909P/ CT95x serial IC#define NO_PSCAN_OUTPUT// Elmer2.75, support ADC_KEY for CT952A/CT955A/CT956A platform#define ADC_KEY//#define KEY_8//#define TOUCH_KEY#endif // #if (DECODER_SYSTEM == DMP952A_EVAL)//SYuan 2.88#if (DECODER_SYSTEM == DMP952B_EVAL)// [Audio DAC] : Internal ADAC + CS4334 2 channel only DAC#define USE_INTERNAL_ADAC_ONLY#define ENABLE_INTERNAL_ADAC#define AUDIO_DAC DAC_INTERNAL#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN#define REGTABLE "VD\Regtable_CT952.H" //Set TFT include register table . Jeff VD 1.23 Add// [Storage Type]#define STORAGE_TYPE SERIAL_FLASH// #define STORAGE_TYPE NO_STORAGE#define IC_VERSION_ID IC_VERSION_952A#define CS_UPGAP_NAME "UPG952B.AP"// LLY2.55, don't support SPDIF output.#define NO_SPDIF_OUTPUT// LLY2.60, don't support PSCAN output for CT909P/ CT95x serial IC#define NO_PSCAN_OUTPUT// Elmer2.75, support ADC_KEY for CT952A/CT955A/CT956A platform#define ADC_KEY#define KEY_7//#define TOUCH_KEY#endif // #if (DECODER_SYSTEM == DMP952B_EVAL)// LLY2.60, add for CT956A system#if (DECODER_SYSTEM == DMP956A_EVAL)// [Audio DAC] : Internal ADAC only#define USE_INTERNAL_ADAC_ONLY#define ENABLE_INTERNAL_ADAC#define AUDIO_DAC DAC_INTERNAL#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN// wyc2.77-909p, move this define to here.#define SUPPORT_TFT_DIGITAL_MODE#define REGTABLE "VD\Regtable_CT956.H" //Set TFT include register table . Jeff VD 1.23 Add// [Storage Type]#define STORAGE_TYPE SERIAL_FLASH// #define STORAGE_TYPE NO_STORAGE#define IC_VERSION_ID IC_VERSION_956A#define CS_UPGAP_NAME "UPG956A.AP"// LLY2.55, don't support SPDIF output.#define NO_SPDIF_OUTPUT// LLY2.60, don't support PSCAN output for CT909P/ CT95x serial IC#define NO_PSCAN_OUTPUT// Elmer2.75, support ADC_KEY for CT952A/CT955A/CT956A platform#define ADC_KEY//#define KEY_8//#define TOUCH_KEY#endif // #if (DECODER_SYSTEM == DMP956A_EVAL)// LLY2.60, add for CT955A system#if (DECODER_SYSTEM == DMP955A_EVAL)// [Audio DAC] : Internal ADAC only#define USE_INTERNAL_ADAC_ONLY#define ENABLE_INTERNAL_ADAC#define AUDIO_DAC DAC_INTERNAL#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN#define REGTABLE "VD\Regtable_CT955.H" //Set TFT include register table . Jeff VD 1.23 Add// [Storage Type]#define STORAGE_TYPE SERIAL_FLASH// #define STORAGE_TYPE NO_STORAGE#define IC_VERSION_ID IC_VERSION_955A#define CS_UPGAP_NAME "UPG955A.AP"// LLY2.55, don't support SPDIF output.#define NO_SPDIF_OUTPUT// LLY2.60, don't support PSCAN output for CT909P/ CT95x serial IC#define NO_PSCAN_OUTPUT// Elmer2.75, support ADC_KEY for CT952A/CT955A/CT956A platform#define ADC_KEY//#define KEY_8//#define TOUCH_KEY#endif // #if (DECODER_SYSTEM == DMP955A_EVAL)#if (DECODER_SYSTEM == DVD909G_EVAL)// LLY2.61, modify CT909G system configuration for audio DAC#if 1// [Case 1] : Internal audio DAC only (can enable SCART feature)#define USE_INTERNAL_ADAC_ONLY#define ENABLE_INTERNAL_ADAC#define AUDIO_DAC DAC_INTERNAL#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN#define SUPPORT_2_CHANNEL_ONLY#endif#if 0// [Case 2] : External 5.1 channel Audio (Dis-allow to enable SCART feature)// Notice: it's use WM8766 5.1ch ADAC (I2S, 24bit),// and un-necessary to program (ie. run H/W default mode)// So, suggest to assign the DAC as DAC_GENERAL since no need program it.#define AUDIO_DAC DAC_GENERAL#define SUPPORT_PCM_WORD_LENGTH 24#define AUDIO_ALIGN_FORMAT I2S_ALIGN#endif// [Storage Type]#define STORAGE_TYPE SERIAL_FLASH// #define STORAGE_TYPE NO_STORAGE#define IC_VERSION_ID IC_VERSION_909G#define CS_UPGAP_NAME "UPG909G.AP"#endif // #if (DECODER_SYSTEM == DVD909G_EVAL)// LLY2.11, base on storage type to decide if define NO_SERIAL_FLASH#if (STORAGE_TYPE == SERIAL_FLASH)#undef NO_SERIAL_FLASH#endif // #if (STORAGE_TYPE == SERIAL_FLASH)#if (STORAGE_TYPE == EEPROM)#define NO_SERIAL_FLASH#endif // #if (STORAGE_TYPE == SERIAL_FLASH)#if (AUDIO_ALIGN_FORMAT == RIGHT_ALIGN)#define ALIGN_VALUE 0#elif (AUDIO_ALIGN_FORMAT == I2S_ALIGN)#define ALIGN_VALUE 1#elif (AUDIO_ALIGN_FORMAT == LEFT_ALIGN)#define ALIGN_VALUE 2#endif#if(SUPPORT_PCM_WORD_LENGTH == 32)#define BIT_RESOL_VALUE 4#elif(SUPPORT_PCM_WORD_LENGTH == 24)#define BIT_RESOL_VALUE 3#elif(SUPPORT_PCM_WORD_LENGTH == 20)#define BIT_RESOL_VALUE 2#elif(SUPPORT_PCM_WORD_LENGTH == 18)#define BIT_RESOL_VALUE 1#else // 16#define BIT_RESOL_VALUE 0#endif// ******************************// Audio Output Configuration// ******************************// DVD_275b+, SUPPORT_VIRTUAL_DTS// define it, when DTS stream is selected audio audio output is not SPDIF/RAW mode// will auto choose a non-DTS stream.///#define SUPPORT_VIRTUAL_DTS// define it, only support 2 channel output// setup only need provide SPDIF/2 channel setting// else will support 2 channel/5.1 channel///#define SUPPORT_2_CHANNEL_ONLY//ACLK_384FS or ACLK_256FS#define ACLK_FSMF ACLK_384FS// LLY2.17, if define it, it will enable internal Audio DAC// Otherwise, it will be turn-off//#define ENABLE_INTERNAL_ADAC// LLY2.17, always enable internal audio DAC if user choose AUDIO_DAC as DAC_INTERNAL#if AUDIO_DAC == DAC_INTERNAL#define USE_INTERNAL_ADAC_ONLY#endif // #if AUDIO_DAC == DAC_INTERNAL// LLY2.17, if define it, it will use internal audio DAC only (ie. only support 2 channel)// Otherwise, it can use external audio DAC// Notice: user can choose it base on his platform configure//#define USE_INTERNAL_ADAC_ONLY#ifdef USE_INTERNAL_ADAC_ONLY#define ENABLE_INTERNAL_ADAC#define SUPPORT_2_CHANNEL_ONLY#endif // #ifdef USE_INTERNAL_ADAC_ONLY// define it, means Using I2C to control IC// else reduce the source code///#define SUPPORT_I2C// define it, will support real Letter Box Subpicture// else, it choose WIDE mode// Micky0.86, only navigate.c will reference it.// Ct908AB can't enable it.// Micky0.95, 908AC can support it.// Micky1.00, enable it always for CT908AC.#define SUPPORT_LETTERBOX_SUBPICTURE////////////////////////////////////////////////// ****** User Operation Zone ******////////////////////////////////////////////////// ******************************// OSD part// ******************************// LLY2.78b-3, if define it, it will display "program play" info// while start the program mode playing// Otherwise, it only display "PLAY"//#define SUPPORT_PROGRAM_PLAY_INFO// Micky1.10, define it, KEY_REPEAT will toggle between repeat track/ disc when playing program./// #define SUPPORT_ONLY_2_REPEAT_MODE_IN_PROGRAM// wyc1.10, add follow define in WINAV.H// If define it, then CDROM titles will support number confirm keys// Otherwise, after input number key in CDROM titles then it will directly go that file.//#define SUPPORT_CDROM_NUMBER_CONFIRM_KEY// If define it, then cursor will loop in current directory when moving select highlight up and down.// Otherwise, move select highlight to up of current directory will go previous directory's last file.//#define SUPPORT_FM_CURSOR_RING_SAME_DIRECTORY// Brian1.07// If define it, the value text of Setup OSD item will its own language// otherwise all the value text use the same language as the current OSD language// #define OSD_ITEM_TEXT_SAME_AS_LANGUAGE// Brian1.07// If define it, Setup help message will change according to the current OSD language.// otherwise, all the help message is English// #define SUPPORT_SETUP_MULTI_LANGUAGE_HELP_MSG//Brian1.07a// define this will show PSCAN prompt dialog in Setup//#define SUPPORT_PSCAN_PROMPT_SETUP// define this will show PSCAN prompt dialog when KEY_PSCAN or KEY_VIDEO_OUTPUT_CTL//#define SUPPORT_PSCAN_PROMPT_OSD// default action after PSCAN prompt time out.// KEY_STOP: cancel; KEY_PLAY: continue#define PSCAN_PROMPT_DEFAULT_KEY KEY_STOP // default is cancel the action#define SUPPORT_FONT_TABLE_CHECKSUM // Brian1.25, support font table checksum ability//#define SUPPORT_ADJUST_CHROM_PHASE // Brian1.25, support chroma adjust ability#define SUPPORT_STRING_GENERATOR // Brian1.25, define this will use string files generated by String Generate Tool//LJY1.11, support anti-shock// define it, will support ant-shock/// #define SUPPORT_ANTISHOCK// Micky1.20, 4M flash///#define SUPPORT_4M_FLASH// Micky1.10-2, add configuration for support 32M SDRAM// define it, will support 32M SRDAM configuration. need uCode cooperation/// #define USE_32M_SDRAM// if define this, all the Setup dialog will recover the area by redrawing,// otherwise it use Bitmap Copy to recover the area.#define SETUP_DIALOG_RECOVER_BY_REDRAW// if define this, will use only one OSD region for display#define USE_ONE_OSD_REGION#ifdef USE_32M_SDRAM#ifdef SUPPORT_ANTISHOCK // Brian1.11, make sure 32M case has no Anti-shock#undef SUPPORT_ANTISHOCK#endif#endif// If define it, logo data is put @ flash, and F/W will read it from flash directly.// Otherwise, logo data is included by our F/W program. -- LLY1.06-1// wyc2.17-909S, enable it in this version.#define LOGO_FROM_FLASH// ****************************************************************// Disc Resume Feature Area// ****************************************************************// If define it, it will support disc resume feature.//#define SUPPORT_MULTI_DISC_RESUME// Always define the supported disc number for Disc Resume feature.#define RESUME_DISC_NUM 5// If define it, support disc resume feature while I/R Power on.// ex. IR power off: save the resume info.// Detect disc done, ex. IR power on or close tray: playback the resume info if same disc//#define SUPPORT_RESUME_AFTER_POWERON// If define it, support disc resume feature while open/close.// ex. Tray open: save the resume info.// Detect disc done, ex. IR power on or close tray: playback the resume info if same disc//#define SUPPORT_RESUME_AFTER_OPENCLOSE// If define it, the multi-disc resume information will be kept in the EEPROM//#define SUPPORT_RESUME_FROM_EEPROM// Ming2.42-1, Clear Resume info. in fully STOP mode.//#define CLEAR_RESUME_WHEN_STOP// Micky1.06, merge the define error condition.#if defined(SUPPORT_RESUME_AFTER_OPENCLOSE) || defined(SUPPORT_RESUME_AFTER_POWERON)#undef SUPPORT_MULTI_DISC_RESUME#define SUPPORT_MULTI_DISC_RESUME#endif // #if defined(SUPPORT_RESUME_AFTER_OPENCLOSE) || defined(SUPPORT_RESUME_AFTER_POWERON)#if !defined(SUPPORT_MULTI_DISC_RESUME)#if defined(SUPPORT_RESUME_FROM_EEPROM) || defined(CLEAR_RESUME_WHEN_STOP)#error "Must define SUPPORT_RESUME_AFTER_OPEN_CLOSE or SUPPORT_RESUME_AFTER_OPEN_CLOSE "#endif //#if defined(SUPPORT_RESUME_FROM_EEPROM) || defined(CLEAR_RESUME_FROM_STOP)#endif //#if !defined(SUPPORT_MULTI_DISC_RESUME)// Micky1.24,// define it, will show invalid message when gototime is not allowed///#define GOTIME_DISALLOW_SHOW_INVALID// define it, will clear REPEAT status when reap stop///#define CLEAR_REPEAT_WHEN_REAL_STOP// ******************************// Power On Status// ******************************// define it, means system will enter standby mode when power is ON first time/// #define POWERON_STANDBY// define it, means system will auto-play after Open/Close or KEY_PBC or Power-ON///#define AUTO_PLAY// wyc1.05-2, a define to support FM auto play// define it, means FM will auto play// else, will stop at FM menu.//#define MMANAGER_AUTO_PLAY// define it, means system will enetr NO-PBC mode even title is "VIDEO CD 2.0"/// #define DEFAULT_NOPBC// define it, means Border is blue when switch track or ReadTOC// else the border is black/// #define BORDER_BLUE// define it, when stay in stop mode or no disc and// no user operation over a period of time// will auto enter power down mode.///#define AUTO_POWERDOWN// Micky1.25, add auto powerdown for screen saver mode// #define POWERDOWN_AFTER_SCREENSAVER// the wait time to enter power down mode///#define WAITTIME_POWERDOWN (COUNT_10_SEC*48L)// If define it, it will switch to AP mode base on EEPROM saved value directly -- LLY2.00// #define POWERON_SWITCH_AP// **************************************// Auto-Upgrade Relative Area// **************************************// If define it, F/W will support auto-upgrade feature// Otherwise, the feature will be disable// Micky2.80p, only SYSTEM_8051 will support auto upgrade#define SUPPORT_AUTO_UPGRADE// Chuan 172 2002/02/22: if define SUPPORT_AUTO_UPGRADE, support auto upgrade#ifdef SUPPORT_AUTO_UPGRADE// Chuan 172 2002/02/22:// if define AUTO_UPGRADE_CONFIRM, will confirm auto upgrade procedure by user#define AUTO_UPGRADE_CONFIRM// Chuan0.87-2th, define it to do checksum.#define CHECKSUM_CHECK// Chuan 172 2002/02/28:// if define INCLUDE_FLASH, Auto-Upgrade Procedure will use include files (FLASH.TXT)//#define INCLUDE_FLASH#endif // #ifdef SUPPORT_AUTO_UPGRADE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -