📄 bd_jeja.h
字号:
//Project File
//=======================================================
#define MST_CHIP MST716A
#define RM_EEPROM_TYPE RM_TYPE_24C16
#define TUNER_TYPE TUNER_XF_6A//TUNER_LG_TALN_Z200T//
#define PANEL_TYPE PanelPVI07_AT
#define KEY_TYPE Dual_ADCKey
#define KEY_PORT SAR0|SAR1
#define TV_SYSTEM TV_PAL
//==========Source DEFINE ====================================
#define VGA_ENABLE 0
#define TV_ENABLE 1
//==========AudioCtrl DEFINE ====================================
#define AudioCtrl PWM_TYPE_PWM1
//==========DSP DEFINE ==========================================
#define ENABLE_VD_DSP 1
#define ENABLE_SECAM 1
#define CCFL_FUNCTION 0
#define CCFL_BURST_MODE 0
#define LED_BACKLIGHT 0
//==========I/O setting==================================
#if (!IRSEND_ENABLE)
#define hwBlacklit_Pin P0_4
#define hw_SetBlacklit() hwBlacklit_Pin=0
#define hw_ClrBlacklit() hwBlacklit_Pin=1
#else
//#define hwBlacklit_Pin P0_4
#define hw_SetBlacklit() msWriteByte(BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU);\
msWriteByte(BK0_00_REGBK, REG_BANK_SCALER);
#define hw_ClrBlacklit() msWriteByte(BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU);\
msWriteByte(BK0_00_REGBK, REG_BANK_SCALER);
#define hwIRsend_Pin P0_4
#define hw_SetIRsend_Pin() hwIRsend_Pin=1
#define hw_ClrIRsend_Pin() hwIRsend_Pin=0
#endif
#define hwPanelPower_Pin P0_3
#define hw_SetPanelPower() hwPanelPower_Pin=0
#define hw_ClrPanelPower() hwPanelPower_Pin=1
#define hwTuner_pin P4 //P4.0
#define hw_SetTunerOn() {g_ucP4Value&=~0x02;hwTuner_pin=g_ucP4Value;}
#define hw_SetTunerOff() {g_ucP4Value|=0x02;hwTuner_pin=g_ucP4Value;}
#define hwI2C_SCL_Pin P0_2
#define hwI2C_SDA_Pin P0_1
#define hwI2C_SCL_Pin_STATUS (hwI2C_SCL_Pin)
#define hwI2C_SDA_Pin_STATUS (hwI2C_SDA_Pin)
#define hw_SetGreenLed() msWriteByte(BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU);\
msWriteByte(BK1_F5_PWM2C, 0x00);\
msWriteByte(BK0_00_REGBK, REG_BANK_SCALER);
#define hw_ClrGreenLed() msWriteByte(BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU);\
msWriteByte(BK1_F5_PWM2C, 0x00);\
msWriteByte(BK0_00_REGBK, REG_BANK_SCALER);
//============Audio Setting================================
#define P6_GPIO_Enable
#define P5_GPIO_Enable
#if IRSEND_ENABLE
#define Init_P0_Value 0xFF
#else
#define Init_P0_Value 0xF7
#endif
#define Init_P4_Value 0xFD
#define Init_P6_Value 0xEF
#define Init_P5_Value 0x0C
#define hwAudioStby_Pin P5_0
#define hw_SetAudioStby() hwAudioStby_Pin=1
#define hw_ClrAudioStby() hwAudioStby_Pin=0
#define hwVCC5VSW_Pin P6_4
#define hw_SetVCC5V_Stby() hwVCC5VSW_Pin=1
#define hw_ClrVCC5V_Stby() hwVCC5VSW_Pin=0
#define hwAudioMute_Pin P5_1
#define hw_SetAudioMute() hwAudioMute_Pin=1
#define hw_ClrAudioMute() hwAudioMute_Pin=0
#define hwAudioMux_Pin_1 P6_6
//#define hwAudioMux_Pin_2 P6_7
#define hw_SetAudioMuxToCVBS() hwAudioMux_Pin_1 =0
//hwAudioMux_Pin_2=1;
#define hw_SetAudioMuxToTuner() hwAudioMux_Pin_1=1
//hwAudioMux_Pin_2=0;
// PWM for TDA7496L volume
#define INIT_AudioVolume_X0 0x10
#define INIT_AudioVolume_X1 0x20
#define INIT_AudioVolume_X2 0x35
#define INIT_AudioVolume_X3 0x50
#define INIT_AudioVolume_X4 0x60
//=================================================================
#if(KEY_TYPE==Single_ADCKey)
#define KEY_AD_L0 0x02//0x02
#define KEY_AD_L1 0x07//0x0E
#define KEY_AD_L2 0x10//0x1E
#define KEY_AD_L3 0x19//0x2D
#define KEY_AD_L4 0x21//0x1E
#define KEY_AD_L5 0x2C//0x2D
#define KEY_AD_DELTA 0x05 // tolerance
#elif(KEY_TYPE==Dual_ADCKey)
#define KEY_AD_L0 0x00//0x02
#define KEY_AD_L1 0x0B//0x0E
#define KEY_AD_L2 0x1B//0x1E
#define KEY_AD_L3 0x29//0x2D
#define KEY_AD_DELTA 0x08 // tolerance
#endif
//=================================================================
typedef enum
{
Input_TV,
Input_CVBS1,
Input_Nums,
Input_CVBS2,
Input_CVBS3,
Input_CVBS4,
Input_CVBS5,
Input_CVBS6,
Input_SVIDEO1,
Input_SVIDEO2,
Input_VGA,
// Input_YPbPr,
Input_Nothing,
Input_AllPort=0xFF
} InputPortType;
#define CVBS1_RealPortSet PORT_CVBS2
#define CVBS2_RealPortSet PORT_CVBS2
#define TV_RealPortSet PORT_CVBS1
#define CVBS3_RealPortSet PORT_CVBS_SV1Y
#define CVBS4_RealPortSet PORT_CVBS_SV1C
#define CVBS5_RealPortSet PORT_CVBS_SV1C
#define CVBS6_RealPortSet PORT_CVBS_SV1C
#define SVIDEO1_RealPortSet PORT_SV1
#define SVIDEO2_RealPortSet PORT_SV2
#define VGA_RealPortSet PORT_VGA
#define YPbPr_RealPortSet PORT_YPbPr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -