cfg_zihuan_8202.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:16k
源码类别:

DVD

开发平台:

C/C++

  1. #define VERSION_STRING      "ZH2-000"   //version: xxx-yyy, 20030422
  2. //---------------------
  3. //board parts settings
  4. //---------------------
  5. //SDRAM settings(bus width, default is 16-bits mode)
  6. #define SDRAM_BUS_32BITS        //define it to use 32 bits SDRAM Bus width
  7. //#define SDRAM_16Mb_Mode       //only use 16Mb*1 SDRAM
  8. #define AUTO_PLAY // VCD/DVD auto play when tray-in
  9. #ifdef AUTO_PLAY
  10. #define DVD_SEQ_PLAY
  11. #endif
  12. /*
  13. * Define Disc detect polling time
  14. */
  15. #define DETECT_TIMES 0xff
  16. #define NO_DISC_TIMES 30
  17. /*
  18. *  Video seting
  19. */
  20. /*#define PC_VGA_OUT*/
  21. /*#define TV_YUV_OUT*/
  22. #define S_VIDEO_OUT
  23. /*
  24. * ROM setting
  25. */
  26. /*#define ROM_SDRAM_SHARE_BUS*/
  27. /*#define ROM_ATA_SHARE_BUS*/
  28. //CD-G related
  29. #define SUPPORT_CDG                 //define it to support CD-G
  30. //#define TVOUT6_4DAC_ON
  31. #ifdef TVOUT6_4DAC_ON
  32. #define TV_USE_4_DAC
  33. #endif
  34. //#define TV_USE_4_DAC
  35. //#define SCART_TV                  //define it if we support SCART TV, use GPIO-37-38-39 to control
  36. //#define ORI_SCART_TV
  37. //#define SCART_TV_2 //define pin151---SCART_DISPLAY; pin163---SCART_SIG  wanghaoying
  38. //C/F Card setting
  39. //#define SUPPORT_CARD_STORAGE      //Jeff 20020725
  40. //#define CARD_MASTER                 //if you don't connect DVD-ROM, define SUPPORT_CARD_STORAGE+CARD_ONLY
  41. //#define CARD_HOT_PLUG             //2002/11/8 kenny define for new reset(GPIO-17) scheme for card detect(GPIO-18)
  42. //Upgrade setting
  43. #define UPGRADE_FILE_NAME {"DVDROM.BIN"}
  44. #ifndef SDRAM_16Mb_Mode
  45. //#define SUPPORT_NESGAME             //Jeff 20020521
  46. //#define DVD_AUDIO
  47. #endif
  48. #define SUPPORT_WMA
  49. //audio DAC settings, chose one
  50. //6 channel audio DAC
  51. #ifdef SPHE8202
  52. #define WM8746I2S24               //(format:I2S24)
  53. #else
  54. #define WM8746                      //(format:RJ24)WM8766 is pin-2-pin compatible
  55. #endif
  56. //#define WM8736                    //for AUDIO DAC WM8736 or DA1196 6 chanell
  57. //#define AV2188
  58. //#define CS4228
  59. //2 channel audio DAC
  60. //#define WM8726RJ16
  61. //#define WM8746I2S24
  62. //#define WM8720                    //use GPIO-17 as AUDIO_RST
  63. //#define CS4334DAC
  64. //#define PCM1742
  65. //#define PCM1606
  66. //#define PCM1720
  67. //#define PCM1723
  68. //Audio channel connector(RCA connector)setting, Jeff 20020520
  69. //We assign connectors to the following index, Lm(0), Rm(1), L(2), R(3), Ls(4), Rs(5), C(6), SFE(7)
  70. //2-3-4-5-6-7 map to DAC OUT0L-OUT0R-OUT1L-OUT1R-OUT2L-OUT2R
  71. #define DACOUTLm        0
  72. #define DACOUTRm        1
  73. #define DACOUT0L        2
  74. #define DACOUT0R        3
  75. #define DACOUT1L        4
  76. #define DACOUT1R        5
  77. #define DACOUT2L        6
  78. #define DACOUT2R        7
  79. #define DAC_INVERT      1           //dac polarity 0 (untouch) or 1 (inverted)
  80. //#define USE_A19_AS_GPIO_MUTE
  81. //IR setting
  82. #define IR44                        // for new SUNPLUS remote controller
  83. #define IR_PLAY_RESUME
  84. #define IR_PLAY_RESUME_PAUSE
  85. //#define ADJUSTING_ACTION_VALID_RIGHT_NOW
  86. //#define NEXT_FORWARD_IN_A_KEY
  87. //#define IR5                         //"ircode_N700.h"
  88. #define IR_10_PLUS
  89. //#define IR_NO_REPEAT              //disable repeat, when we keep to press one button, Jeff 20020924
  90. //#define USE_VFD_LED_POWER         //use VFD LED to indicate power mode
  91. //VFD setting
  92. #define ZIHUAN_PANEL
  93. //OSD language related settings(don't change the sequence)
  94. #define USE_ENGLISH_OSD             //LCD_EN
  95. #define USE_SCHINESE_OSD            //LCD_ZH
  96. //#define USE_TCHINESE_OSD            //LCD_ZH
  97. #define USE_GERMAN_OSD              //LCD_DE
  98. #define USE_SPANISH_OSD             //LCD_ES
  99. #define USE_FRENCH_OSD              //LCD_FR
  100. #define USE_PORTUGUESE_OSD          //LCD_PT
  101. //#define USE_LATIN_OSD               //LCD_LA
  102. //#define USE_ITALIAN_OSD             //LCD_IT
  103. //#define USE_JAPANESE_OSD            //LCD_JA
  104. //#define USE_RUSSIAN_OSD             //LCD_RU
  105. //#define USE_ROMANIAN_OSD             //LCD_RO
  106. //#define USE_TURKISH_OSD             //LCD_TR
  107. //#define USE_DUTCH_OSD               //LCD_NL
  108. //#define USE_SWEDISH_OSD             //LCD_SV
  109. //#define USE_CZECH_OSD               //LCD_CS
  110. #define DEFAULT_OSD_LANG            0
  111. #ifdef SDRAM_16Mb_Mode
  112. #define N_OSD_LANGS                 2
  113. #define OSD_LAGN_SETUP_STRING       LCD_EN,LCD_PT,0,0,0,0,0,0
  114. #define OSD_LANG_SETUP_MAP          {0, 1,     0,     0,     0,      0, 0, 0} //mapping table(OSD_LAGN_SETUP_STRING --> USE_XXX_OSD)
  115. #else
  116. #define N_OSD_LANGS                 6//8//3
  117. #define OSD_LAGN_SETUP_STRING       LCD_EN,LCD_ZH,LCD_DE,LCD_ES,LCD_FR,LCD_PT,0,0
  118. #define OSD_LANG_SETUP_MAP          {0, 1,     2,     3,     4,      5, 0, 0} //mapping table(OSD_LAGN_SETUP_STRING --> USE_XXX_OSD)
  119. #endif
  120. #define OSD_TIMEOUT                 200
  121. #define OSD_SCREEN_SAVER
  122. #define REGION_NUM                  0       //set default region:0->all rigion;1~6->REGION 1~6.
  123. #define SUPER_PASSWORD              {IRC_9,IRC_7,IRC_3,IRC_5}   //define super password when open tray
  124. #define DEFAULT_PASSWORD            0000                        //Jeff 20020703
  125. #define USER_SUPER_PASSWORD         0000                       //NONO 3-6-17 14:31
  126. #define DEFAULT_AUDIO_LANG          2   //2:Chn, 3:Eng, 4:Jap, 5:Frn, 6:Spa, 7:Por, 8:Ger, 9:Lat
  127. #define OSD_AUDIO_LAGN_SETUP_STRING     LCD_ZH,LCD_EN,LCD_JA,LCD_FR,LCD_ES,LCD_PT, LCD_LA, LCD_DE
  128. #define DEFAULT_SUBT_LANG           2   //2:Chn, 3:Eng, 4:Jap, 5:Frn, 6:Spa, 7:Por, 8:Ger, 9:off
  129. #define OSD_SUBT_LAGN_SETUP_STRING     LCD_ZH,LCD_EN,LCD_JA,LCD_FR,LCD_ES,LCD_PT, LCD_DE, STR_OS_OFF
  130. #define DEFAULT_MENU_LANG       2      //2:Chn, 3:Eng, 4:Jap, 5:Frn, 6:Spa, 7:Por, 8:Ger, 9:Lat
  131. #define OSD_MENU_LAGN_SETUP_STRING     LCD_ZH,LCD_EN,LCD_JA,LCD_FR,LCD_ES,LCD_PT, LCD_DE, LCD_LA
  132. #define DEFAULT_TV_SYS              0       //0:NTSC, 1:PAL60, 2:PAL, 3:AUTO
  133. //#define TV_SYS_SETUP_STRING      STR_OS_NTSC, STR_OS_PAL60, STR_OS_PAL, STR_OS_PALM, STR_OS_PALN, STR_OS_PALNc, STR_OS_AUTO, 0
  134. #define TV_SYS_SETUP_STRING      STR_OS_NTSC, STR_OS_PAL60, STR_OS_PAL, STR_OS_AUTO, 0, 0, 0
  135. #ifdef TV_USE_4_DAC
  136. #define MODE_MAX_PSCAN 0x05
  137. #else
  138. #define MODE_MAX_PSCAN 0x04
  139. #endif
  140. #ifdef PC_VGA_OUT
  141.    #ifdef TV_USE_4_DAC
  142.    #define VIDEO_SETUP_STRING      STR_OS_PC_VGA,STR_OS_P_SCAN_YUV,STR_OS_YCbCr,STR_OS_TV_RGB, STR_OS_S_VIDEO, 0,0
  143.    #define VIDEO_SET_MODE PC_VGA,       P_SCAN,           INTERLACE,  TV_RGB,        TV_SVIDEO
  144.    #else
  145.    #define VIDEO_SETUP_STRING      STR_OS_PC_VGA,STR_OS_P_SCAN_YUV,STR_OS_YCbCr,STR_OS_TV_RGB, 0, 0,0
  146.    #define VIDEO_SET_MODE PC_VGA,       P_SCAN,           INTERLACE,  TV_RGB
  147.    #endif
  148. #elif defined(TV_YUV_OUT)
  149.    #ifdef TV_USE_4_DAC
  150.    #define VIDEO_SETUP_STRING      STR_OS_P_SCAN_YUV,STR_OS_PC_VGA,STR_OS_YCbCr,STR_OS_TV_RGB, STR_OS_S_VIDEO, 0,0
  151.    #define VIDEO_SET_MODE P_SCAN,           PC_VGA,       INTERLACE,  TV_RGB,        TV_SVIDEO
  152.    #else
  153.    #define VIDEO_SETUP_STRING      STR_OS_P_SCAN_YUV,STR_OS_PC_VGA,STR_OS_YCbCr,STR_OS_TV_RGB, 0, 0,0
  154.    #define VIDEO_SET_MODE P_SCAN,           PC_VGA,       INTERLACE,  TV_RGB
  155.    #endif
  156. #elif defined(S_VIDEO_OUT)
  157.    #ifdef TV_USE_4_DAC
  158.    #define VIDEO_SETUP_STRING      STR_OS_YCbCr,STR_OS_TV_RGB,STR_OS_P_SCAN_YUV,STR_OS_PC_VGA, STR_OS_S_VIDEO, 0,0
  159.    #define VIDEO_SET_MODE INTERLACE,  TV_RGB,    P_SCAN,           PC_VGA,        TV_SVIDEO
  160.    #else
  161.    #define VIDEO_SETUP_STRING      STR_OS_YCbCr,STR_OS_TV_RGB,STR_OS_P_SCAN_YUV,STR_OS_PC_VGA, 0, 0,0
  162.    #define VIDEO_SET_MODE INTERLACE,  TV_RGB,    P_SCAN,           PC_VGA
  163.    #endif
  164. #endif
  165. #define SETUP_ALL_VALID             //define it to let SETUP MENU is always valid, Jeff 20021023
  166. //#define SETUP_DONT_PAUSE                // define it to continue play when SETUP, alan 3-8-5 17:48
  167. //#define NEW_SEARCH_OSD              //new search OSD function, using up/down to switch selection
  168. #define RATING_8                  //if we define it, there are 8 ratings, 1/2/3/../8, otherwise, 3 ratings, Jeff 20020723
  169. //#define TWO_CHANNEL_ONLY          //define it to output two channel audio only, mark it for 5.1 channel, Jeff 20020819
  170. //#define NO_MIC                    //if use it,about MIC item will be gray and can't be selected.
  171. #define NO_DTS_OUTPUT             //define it when we don't support DTS audio output
  172. //idle time to wake up screen saver
  173. #define SAFE_WAIT_TIME              (3* 60 * 100)      //x second
  174. #ifndef SDRAM_16Mb_Mode
  175. #define SUPPORT_FILE_SYSTEM_MODE  //use MP3 menu to play all we support files(e.g. .dat .vob ...)
  176. #define SUPPORT_PLAYBACK_ICON       // display osd playback icons
  177. #endif
  178. //#define MP3_DIRECT_SELECT         //select file item all disc, panxing,2002-4-8
  179. //#define MP3_CD_FF1_BF1_MUTE       //FF*2 and BF*2 mute
  180. #define JPEG_EXT2FULL             //extend JPEG to full screen
  181. #define JPGExtMaxMultiple         2               //max. ext multiple=JPGExtMaxMultiple * JPGExtMaxMultiple
  182. #define JPG_EFFECT   //David Add 3-6-26 17:12
  183. #define JPEG_SLIDE_TIME             (3*100)         //JPEG slide show hold time, x second
  184. #ifndef SDRAM_16Mb_Mode
  185. #define JPEG_THUMBNAIL_MENU         //enable JPEG thumbnail menu
  186. //#define JPEG_PREFETCH               //pre-fetch JPEG file and decode when we select someone file
  187. #endif
  188. #define DVD_DIRECT_SELECT_CHAPTER //In DVD Disc, number keys select chapter rather than title
  189. //#define POWER_RESUME
  190. #define SAME_DISC_RESUME
  191. #ifdef SAME_DISC_RESUME
  192. #define POWER_RESUME
  193. #endif
  194. //#define AUDIO_SHOW_SAVER                          //MP3 or CDDA play will show screen-saver when idle > 10 seconds, Jeff 20020815
  195. //#define SLEEP_WHEN_POWER_ON                       //system enter sleep mode when power-on, Jeff 20020922
  196. #ifndef SDRAM_16Mb_Mode //terry,de-mark,2003/8/2 11:49AM
  197. #define SUPPORT_DVD_3D                              //SUPPORT_DVD_3D defined only to enable DOWNMIX SWITCH
  198. #define DVD_3D_SHOW_SPECTRUM                        //SUPPORT_DVD_3D+DVD_3D_SHOW_SPECTRUM : to show spectrum(not include LPCM)
  199. //#define SUPPORT_DVD_3D_EFFECT//for two channel, DVD can use 3Dsound.
  200. #endif
  201. #define SPDIF_REAL_OFF                              //close SPDIF clock when not in SPDIF mode, Jeff 20020920
  202. #define AC3_BASS_MANAGEMENT                         //AC3 Bass Management
  203. //#define SPDIF_PLUS_ANALOG                           //define it when we output SPDIF/PCM+Analog simultaneous, Jeff 20021029
  204. #define MIC_THRESHOLD               0x30            //default:0x30, (0x20 ~ 0xa0)
  205. #define MIC_PRESENSITIVITY          0x1a            //MIC turn-on sense time(unit: 32/44100 sec, only for (S)VCD/MP3)
  206. #define MIC_AFTERSENSITIVITY        0x0903          //MIC turn-off sense time(units:1/3 seconds, Hi-auto, Lo-MIC(unused))
  207. #define ECHO_DECAY_INIT             0x05            //ECHO decay model(1~8), hi:intensity
  208. #define RESET_AFTER_UPGRADE         //reset 8200 and tray out after smart upgrade
  209. #define SUPPORT_VIDEO_BUFFER_STANDBY //kenny 2003/5/13
  210. //#define SUPPORT_EXTERNAL_MIC //kenny 2003/5/14
  211. #ifdef SUPPORT_VIDEO_BUFFER_STANDBY
  212. #define STANDBY_GPIO 52
  213. #endif
  214. #ifdef SUPPORT_EXTERNAL_MIC
  215. #define EXTERN_MIC_DECT     57
  216. #define EXTERN_MIC_MUTE     18
  217. #endif
  218. //#define SUPPORT_UART_UPGRADE      //Upgrade flash via UART, Robert 020603
  219. //#define SUPPORT_UART_COMMAND      //Support UART to communicate with external MCU //KENNY 2002/7/16
  220. //#define RCD_GPIO_CONTROL          //alan 2002/11/14 05:06