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

DVD

开发平台:

C/C++

  1. #ifndef __CONFIG_H
  2. #define __CONFIG_H
  3. #include "user_init.h"
  4. #ifdef DVB1000_NON_OS  //Maoyong 2004-9-27 17:28
  5. #include "dvbdef.h"
  6. #endif
  7. #define DVD728 // barry
  8. #define FORSIMULATION // barry
  9. #define NO_WAIT_V_BLANK // barry
  10. //#define MONE_CKM     // barry
  11. /*
  12. ** configuration of mpeg2/mpeg1 core controller
  13. */
  14. #define CONFIG_VCD 0
  15. #define CONFIG_SVCD 1
  16. #define CONFIG_DVD 2
  17. #define CONFIG CONFIG_DVD
  18. #define SUPPORT_CVD 1
  19. #define SUPPORT_SVCD 1
  20. #define SUPPORT_MPEG2 1
  21. //#define SUPPORT_IR 1
  22. //#define SUPPORT_VFD 1
  23. //#define SUPPORT_OGT 1
  24. //#define SUPPORT_MP3 1
  25. #define SUPPORT_OSD 1
  26. //#define SUPPORT_DEVICE_CDROM 1
  27. //#define SUPPORT_DEVICE_DVDROM 1
  28. #ifdef DVDRELEASE
  29. #undef  SUPPORT_EPP
  30. #else
  31.     #ifndef SUPPORT_EPP
  32.         #define SUPPORT_EPP 1
  33.     #endif 
  34.     /*
  35.      if soft UART is enable,
  36.       the gpio_sel[0:1] will be initialize to gpio mode on reset iop function
  37.     */
  38.     #ifdef TAS3001_AMP
  39.     #define SOFT_UART_OUT 1
  40.     #else
  41.     //#define SOFT_UART_OUT 1
  42. #endif
  43. #endif
  44. #ifdef SUPPORT_UART_UPGRADE // for doing upgrade via uart, we must turn on SUPPORT_EPP. Robert 020603
  45.     #ifndef SUPPORT_EPP
  46.         #define SUPPORT_EPP
  47.     #endif
  48. #endif 
  49. //
  50. // hardware control register 
  51. #define GLOBAL_REGISTER // use hardware reg
  52. #if     (CONFIG==CONFIG_DVD)
  53. #ifdef DVD728
  54. #define RGST_OFFSET     0xbffe8000
  55. #else
  56. #define RGST_OFFSET     0xafff0000
  57. #endif
  58. #elif   (CONFIG==CONFIG_SVCD)
  59. #define RGST_OFFSET     0x00510000
  60. #elif   (CONFIG==CONFIG_VCD)
  61. #define RGST_OFFSET     0x00510000
  62. #endif
  63. #define RTC_TICKS (100) // 100-tick/s
  64. #define OLDAGDC 0
  65. #define POLLING_VIDEO_DECODE
  66. #define CHECK_PARSING_BARRIER
  67. #define PIC_INFO_SDRAM
  68. #define PARSE_GOP
  69. //#define PARSE_USER_DATA
  70. #define FRAME_DECODING
  71. //#define FIELD_DECODING
  72. #define SYSTEM_LEN_MAX 2324
  73. #define CDDSP_CRC_RETRY 1
  74. #define CDDSP_RETRY_LOW 16
  75. #define CDDSP_RETRY 20
  76. #define CDDSP_RESTART_TIME (2*RTC_TICKS)
  77. /*
  78. ** GNU c specific definitions.
  79. */
  80. #ifdef __GNUC__
  81. #define ENABLE_INLINE
  82. #if defined(ARM_EVM)
  83. #define __value_in_regs
  84. #define ENABLE_INLINE
  85. #endif
  86. #endif
  87. #ifdef ENABLE_INLINE
  88. #ifdef  ARM_EVM
  89. #define INLINE __inline
  90. #else
  91. #define INLINE inline
  92. #endif
  93. #else
  94. #define INLINE
  95. #endif
  96. /*
  97. ** parsing pause criteria
  98. */
  99. #define VBV_LIMIT 2 /* ROWs to stop parsing */
  100. #define ABV_LIMIT 4
  101. #define CBV_LIMIT 8
  102. /*
  103. ** DMA batch, deprecated
  104. */
  105. #define DMA_BATCH 64
  106. /*
  107. ** system input buffer (0-63)
  108. */
  109. #define SRV_IN_BUF 0
  110. #define SRV_IN_BATCH DMA_BATCH
  111. /*
  112. ** video output buffer (64-95)
  113. */
  114. #define VIDEO_OUT_BUF (SRV_IN_BUF+SRV_IN_BATCH)
  115. #define VIDEO_OUT_BATCH 32
  116. /*
  117. ** audio output buffer (96-127)
  118. */
  119. #define AUDIO_OUT_BUF (VIDEO_OUT_BUF+VIDEO_OUT_BATCH)
  120. #define AUDIO_OUT_BATCH 32
  121. /*
  122. ** OGT output buffer (128-160)
  123. */
  124. #define OGT_OUT_BUF (AUDIO_OUT_BUF+AUDIO_OUT_BATCH)
  125. #define OGT_OUT_BATCH 32
  126. /*
  127. **
  128. */
  129. #define TEMP_DMA_RAM (OGT_OUT_BUF+OGT_OUT_BATCH)
  130. //#define SUPPORT_VFD 1//move to user_init.h nono 2-9-16 23:10
  131. #define PLAY_SPEED 2
  132. #endif/*__CONFIG_H*/