📄 internal.h
字号:
#ifndef __INTERNAL_H__
#define __INTERNAL_H__
#ifdef __cplusplus
extern "C" {
#endif
// F/W code version
// !!!! Don't allow modification !!!
#define SW_VERSION 239
#define SW_MINOR_VERSION 0 // default is '0', '1' means 'a', '16' means 'p', and so on...
// servo reference for printf information
//#define SUPPORT_4M_FLASH
// servo reference for ucodes unzip
#define SUPPORT_GZIP_COMPRESSION
#define USE_CT908S
// only CT908S can enable the define
#define OVER_CLOCKING // Brian2.32, define this will use 146MHz instead 133MHz
// Micky1.23, support DVD_T. SERVO refers to this define in Customer.h(XDATA backup)
/// #define SUPPORT_DVD_T
// servo reference for DRAM bank
//#define SUPPORT_DRAM_SORT // Support 3M dram test
/// [System Configuration]
////// [SDRAM Type]
#define SDRAM_16M 1 // 1X16M
// bit 1 is for 32M, bit 2 is for downgrade
#define SDRAM_32M 2 // 2 1X16M
#define SDRAM_32M_D 6 // 64M downgrade
#define SDRAM_64M 8 // 1X64M
//#define SDRAM_CONFIGURATION SDRAM_16M
//#define SDRAM_CONFIGURATION SDRAM_32M
//#define SDRAM_CONFIGURATION SDRAM_32M_D
#define SDRAM_CONFIGURATION SDRAM_64M
#if (SDRAM_CONFIGURATION != SDRAM_16M) // 16M SDRAM
#undef OVER_CLOCKING
#endif
// [Developer's Section]
#if (SDRAM_CONFIGURATION == SDRAM_64M) // 64M SDRAM
//#define SUPPORT_JPEG_LARGE_BUFFER
#define DRAM_ADDR_SERVO_UCODE (0x1ff000L)
#elif (SDRAM_CONFIGURATION == SDRAM_16M) // 16M SDRAM
#define DRAM_ADDR_SERVO_UCODE (0x7F000L)
#else // 32M SDRAM
#define DRAM_ADDR_SERVO_UCODE (0x7F000L)
#if (SDRAM_CONFIGURATION == SDRAM_32M) // 2 1x16M
// The USE_32M_SDRAM is for old servo codes backward compatible. (It will reference USE_32M_SDRAM)
// can be removed if don't support old servo codes
// Can't be reference by MPEG F/W and SERVO F/W
#define USE_32M_SDRAM
#endif
#endif
////// [MPEG Chip Version]
#define VERSION_AC 0x10
#define VERSION_BE 0x11
#define VERSION_AD 0x12
#define VERSION_CA 0x13 //Kevin2.26, 908S
////// [MPEG Clock]
#define PLL_360MHZ 1 // PLL run 360 MHz
#define PLL_399MHZ 2 // PLL run 399 MMz
#define PLL_436MHZ 3 // PLL run 436 MMz
#ifdef OVER_CLOCKING // ** TCH2.33;
#define MPEG_PLL PLL_436MHZ
#else
///#define MPEG_PLL PLL_399MHZ
#define MPEG_PLL PLL_360MHZ
#endif
#if (SDRAM_CONFIGURATION == SDRAM_16M) // 16M SDRAM
#ifdef USE_CT908S
#define FORCE_PAL_NO_FD
#else
// Micky2.36, force PAL bitstream no LB mode
#define FORCE_PAL_NO_LB
#endif
#endif //#if (SDRAM_CONFIGURATION == SDRAM_16M) // 16M SDRAM
#ifdef __cplusplus
}
#endif
#endif // __INTERNAL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -