📄 cmpopt.h
字号:
// CmpOpt.h
#ifndef _CmpOpt_h_185847363_
#define _CmpOpt_h_185847363_
//#include "stbtype.h"
//#include "sss_dbg.h"
#include "vkernel.h"
#if 0 // move to MN_葛胆疙.h
/* Choose only one tuner maker. */
#ifdef DVB_S
//#define RFPLUS
//#define SAMSUNG_EM
//#define PNPNETWORK_S
#define THOMSON_MM_DSF8960
//#define SERIT_S
#endif
#ifdef DVB_T
//#define SAMSUNG_EM
//#define RFPLUS
//#define CONEXANT
#define PNPNETWORK_T
//#define THOMSON_MM
//#define MICROTUNE
#endif
#ifdef DVB_C
#define SAMSUNG_EM
//#define THOMSON_MM
#endif
/* For temporary. sss 20031016 */
#ifdef CONEXANT
#define RFPLUS
#endif //CONEXANT
#endif
/* For better Sensitivity and Simple tuner source */
#if defined( DVB_T ) && defined( RFPLUS )
//#define TEST_USING_DUALBAND_TUNER // insert for lab test sss 20021211
#define VE_PRODUCT /* To enabling of VE product. */
//#define SENS_UP /* To enabling of sensitivity-up module. */
//#define SIMPLE_TUNER /* To enabling of simplification driver. */
#define DRV_VERSION_E /* To enabling of driver difference between Ver E and Ver C. */
#ifdef DRV_VERSION_E
//#define SENS_UP /* To enabling of sensitivity-up module. */
//#define SIMPLE_TUNER /* To enabling of simplification driver. */
#endif
#define FE_FREQ_OFFSET_SEARCH
#define CONEXANT_VERSION_ADD /* To add conexant deviation in the RFplus source */
#endif
/* To control update of driver contents, sss 20030325 */
#if defined ( DVB_S ) && ( defined( SAMSUNG_EM ) || defined( PNPNETWORK_S ) || defined( SERIT_S ) )
#define SS_MODIFY_1ST /* Modification of Tuner Driver Source because of lock/unlock problem, sss 20030325 */
#define REALTIME_SIGNAL_BAR /* Realtime signal Bar processing problem, 20030506 */
#define REDUCE_POSITIONER_MAX
/* To control update of FE_Preset(), sss 20030407 */
#if defined ( DVB_S )
//#define NEW_PRESET /* To enabling of new preset that is for fast tuning, sss 20030407 */
#endif
#endif
/* To control update of driver contents, sss 20030325 */
#if defined ( DVB_S ) && defined( PNPNETWORK_S )
#define REALTIME_SIGNAL_BAR /* Realtime signal Bar processing problem, 20030506 */
#define REDUCE_POSITIONER_MAX
#endif
/* To control RF Tuner Selection, sss 20040209 */
#if defined ( DVB_S ) && defined( PNPNETWORK_S )
/* Freq Offset compensation */
//#define FREQ_OFFSET_SEARCH
/* Select ONE Tuner Type for PN1010*/
//#define _TUNER_MAX2118
//#define _TUNER_SHARP1302
//#define _TUNER_SL1935
//#define _TUNER_TDA8260
#endif //
/* To control THOMSON Tuner Band control, sss_20051130 */
#if defined ( DVB_S ) && defined( THOMSON_MM_DSF8960 )
/* Band control */
//#define THOMSON_MM_MAKE_HIGH_BAND_FOR_SINGLE_LNB
#define THOMSON_MM_USE_ACQUISITION_MODE (0)
#endif //
/* sss_20040308 For new search algorithm */
#if defined( DVB_T ) && defined( PNPNETWORK_T )
/* Freq Offset compensation */
// #define FE_FREQ_OFFSET_SEARCH
/* for fast channel search */
#define PN2020_CHECK_MFSM_REG
/* if defined Serial, if not parallel */
//#define PN2020_TS_SERIAL_ONLY
#endif
/* To control update of driver MUX control, sss 20030402 */
#if defined ( DVB_C )
#define SEPERATE_MUX_PART /* To enabling of driver that is seperated Normal MUX and NIT MUX, sss 20030402 */
#endif
/** sss 20030901 For Game Pack */
//#define _LOADABLE_GAME_PACK_
/** sss 20030901 For DivX Test : Test ONLY */
//#define STB_DVD_CHANGE_TEMP
//#define _DIVX_COMBO_VIDEO_SELECTION_
/** ===========================================================================================NOTE!!!!!!!!!!!!================
* NOTE: This will only be enabled when using the exception handler.
* ===========================================================================================NOTE!!!!!!!!!!!=================
*/
//#define EXCEPTION_HANDLER
/** ===========================================================================================NOTE!!!!!!!!!!!!================
* NOTE: This will only be enabled when AUST_T test
* using 8MHz band modulator
* If it is enabled, the tuner will search 8MHz.
* So, It MUST be disable when mass-production.
*
* #define TEST_USING_DUALBAND_TUNER
* ===========================================================================================NOTE!!!!!!!!!!!=================
*/
//#define TEST_USING_DUALBAND_TUNER /* moved to here sss 20021210 define active for test */
#define FREQUENCY_SHIFT_FOR_LAB_TEST /* To test of fix frequencies in ONLY LAB */
/* Choose path control. */
/* Rear Definition: It must be moved to stbtype.h */
//#define SCART2 /* When ST6412 chip is */
//#define SCART1 /* When ST6412 chip is not, but only one SCART is. */
//#define SCART1_WithOut_6412 /* When ST6412 chip is not, but only one SCART is. */
//#define SCART2_WithOut_6412 /* When ST6412 chip is not, but only two SCART is. */
//#define SCART2_With_6412
//#define RF /* When RF modulator */
/* Debugging log print on/off option */
//#define FE_DEBUG
//#define POS_DEBUG
//#define _POSITIONER
//#define FE_TIME_CONSUME_TEST
/* Redirection of stdout */
//#define printf(x) sttbx_Print(x)
//#define printf sttbx_Print
#ifdef FE_DEBUG
//#define SSS_DBG(CH,INFO,x) SSS_DBG(CH,INFO, x )
//#define SSS_DBG(CH,INFO,x) printf x
#else
//#define SSS_DBG(CH,INFO,x)
#endif
#ifdef POS_DEBUG
#define POS_printf(x) DDI_UART_Print x;
#else
#define POS_printf(x)
#endif
/* General Definitions */
#define IC_EXIST TRUE
#define IC_NONE FALSE
/* What kind of modulator do you use? Choose ONLY ONE!!!!!!!!!!!!!*/
#define SAMSUNG_RF_MODULATOR
//#define LG_RF_MODULATOR
//#define __INTEGRATION
/***************************************************************************************/
/** Tunning 包访 Delay 沥狼 11 - 13 sjk **/
/***************************************************************************************/
#if defined( THOMSON_MM_DSF8960 ) || defined( PNPNETWORK_S ) || defined( SHARP_0194A )
#define FE_Wait(x) VK_TASK_Sleep(x)//task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))// VK_DelayTime(x) //task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))
#endif
#define FE_Wait(x) VK_TASK_Sleep(x)//task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x)) //task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))
#define OS_Wait(x) VK_TASK_Sleep(x)//task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))//task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))
#define tm_wkafter(x) VK_TASK_Sleep(x)//task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))//task_delay((clock_t)((ST_GetClocksPerSecond() * 0.001) * x))
#if 0
#define STV0299_Delay(micro_sec) task_delay((unsigned int)(((micro_sec) + 999) / 1000) * ST_GetClocksPerSecond() / 1000)
#define SystemWaitFor(x) STV0299_Delay((x*1000))
#endif
#ifndef true
#define true (1)
#endif
#ifndef false
#define false (0)
#endif
#define LOCK TRUE
#define UNLOCK FALSE
//#define FE_TOOL
#ifdef TESTTOOL
#define FE_ST_TOOL
#endif //
//#define SSS_DEBUG 0 //
#define SSS_20020510 0 // to adaptation of original source...
#define SSS_20020515 0 // to adaptation of original source...
#if 0
/*Type definitions: generally OK for most platforms.*/
typedef unsigned int BitsT;/* usually 16 or 32 bits */
typedef unsigned short Uint16T;
typedef unsigned long Uint32T;
typedef short Sint16T;
typedef long Sint32T;
typedef unsigned char Uint8T;
typedef signed char Sint8T;
#endif // 0
/* create a boolean */
#ifndef __enumboolean__
#define __enumboolean__
typedef enum {enumFALSE=0,enumTRUE}enumBOOLEAN;
#endif /* __boolean__*/
#define DTV_API /* define to nothing*/
/* other useful defines*/
#ifndef ON
#define ON enumTRUE
#endif
#ifndef OFF
#define OFF enumFALSE
#endif
#ifndef NULL
#define NULL (void*)0
#endif
#ifndef LOW
#define LOW enumFALSE
#endif
#ifndef HIGH
#define HIGH enumTRUE
#endif
#ifdef DVB_C
#ifdef _GERMAN_CABLE_
#define MUX_MAX 50 //MAX_NUM_OF_MUX
#define VHF_MUX_START 0
#define UHF_MUX_START 0
#define START_FREQUENCY 346000
#define STOP_FREQUENCY 738000
#define SYMBOL_RATE_MAX 3
#define SYMBOL_RATE_1 6900
#define SYMBOL_RATE_2 6875
#define SYMBOL_RATE_3 6111
#define SYMBOL_RATE SYMBOL_RATE_2
#define CHANNEL_BANDWIDTH 8
#define MODULATION_MAX 5
#define MODULATION 3 //CONSTELL_64QAM
#define SPECTRUM_SHAPE 2 // for AUTO //1 for INVERSE = YES
#define FEC_OUTER 2 //RS_204_188
#endif //GERMAN_CABLE
#ifdef UK_CABLE
#define MUX_MAX 93 //MAX_NUM_OF_MUX/*69*/
#define VHF_MUX_START 0
#define UHF_MUX_START 0
#define START_FREQUENCY 124000
#define STOP_FREQUENCY 860000
#define SYMBOL_RATE_MAX 3
#define SYMBOL_RATE_1 6900
#define SYMBOL_RATE_2 6875
#define SYMBOL_RATE_3 6111
#define SYMBOL_RATE SYMBOL_RATE_2
#define CHANNEL_BANDWIDTH 8
#define MODULATION_MAX 5
#define MODULATION 3 //CONSTELL_64QAM
#define SPECTRUM_SHAPE 1 //INVERSE = YES
#define FEC_OUTER 2 //RS_204_188
#endif //UK_CABLE
// Modify Code by digitallworld(2002.9.4)
#if (defined (KATHREIN_CABLE) || defined (GERMAN_CABLE))
#define MUX_MAX 70 //MAX_NUM_OF_MUX/*69*/
#define VHF_MUX_START 0
#define UHF_MUX_START 0
#define START_FREQUENCY 306000
#define STOP_FREQUENCY 858000
#define SYMBOL_RATE_MAX 3
#define SYMBOL_RATE_1 6900
#define SYMBOL_RATE_2 6875
#define SYMBOL_RATE_3 6111
#define SYMBOL_RATE SYMBOL_RATE_2
#ifdef SEPERATE_MUX_PART
#define SYMBOL_RATE_REPLACE SYMBOL_RATE_2
#define SYMBOL_RATE_ORG SYMBOL_RATE_1
#endif // SEPERATE_MUX_PART
#define CHANNEL_BANDWIDTH 8
#define MODULATION_MAX 5
#define MODULATION 3 //CONSTELL_64QAM enum { CONSTELL_NONE, CONSTELL_16QAM, CONSTELL_32QAM, CONSTELL_64QAM, CONSTELL_128QAM, CONSTELL_256QAM }; // Modulation
#define SPECTRUM_SHAPE 2 //auto
///#define SPECTRUM_SHAPE 0 //INVERSE = YES
#define FEC_OUTER 2 //RS_204_188 enum { NOT_DEFINED, NO_OUTER_FEC, RS_204_188}; //Outer FEC
#endif // (defined (KATHREIN_CABLE) || defined (GERMAN_CABLE))
#ifdef HUNAN_CABLE
#define MUX_MAX 49 //MAX_NUM_OF_MUX/*49*/
#define VHF_MUX_START 0
#define UHF_MUX_START 0
#define START_FREQUENCY (371250+2750)
#define STOP_FREQUENCY (387250+2750)
#define SYMBOL_RATE_MAX 3
#define SYMBOL_RATE_1 6900
#define SYMBOL_RATE_2 6875
#define SYMBOL_RATE_3 6111
#define SYMBOL_RATE SYMBOL_RATE_1
#ifdef SEPERATE_MUX_PART
#define SYMBOL_RATE_REPLACE SYMBOL_RATE_2
#define SYMBOL_RATE_ORG SYMBOL_RATE_1
#endif // SEPERATE_MUX_PART
#define CHANNEL_BANDWIDTH 8
#define MODULATION_MAX 5
#define MODULATION 3 //CONSTELL_64QAM enum { CONSTELL_NONE, CONSTELL_16QAM, CONSTELL_32QAM, CONSTELL_64QAM, CONSTELL_128QAM, CONSTELL_256QAM }; // Modulation
#define SPECTRUM_SHAPE 2 //eAUTO, INVERSE = (0) , NORMAL = YES(1)
#define FEC_OUTER 2 //RS_204_188 enum { NOT_DEFINED, NO_OUTER_FEC, RS_204_188}; //Outer FEC
#endif //HUNAN_CABLE
#endif // DVB_C
//extern void sttbx_Print(char *Format_p, ...);
//-----------------------------------------------
#endif // _CmpOpt_h_185847363_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -