⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_init.h

📁 代码有点长,需细心阅读,仅供影音视听类产品的开发人员参考
💻 H
字号:
#ifndef __USER_INIT_H
#define __USER_INIT_H

#include "cddsp.h"
#define NEC16312          0
#define HT1621            1
/*------------------------------------------------*/
//#define OSD_ENGLISH_ONLY
//#define POWERUP_ENGLISH
#define CONFIG_TV_SYS           PAL
#define VOL_VALUE               8      
#define VFD_DRIVER              HT1621
#define VFD_MODULE              HTLZD

#define IR_K49STOP
//#define IR_K49POWER
/*------------------------------------------------*/
#define PREVIEW_TIME_FIRST      10
#define PREVIEW_TIME            10
#define VOLUME_OSD32
#define VFDVOL_DISPLAY
#define IR_SCORE_OLD  
#define IR_KEY_FUNC   
#define ECHO_KEY        
#define PASSWORD
#define PROG_NO_MAX             20      
#define RESUME_ONE_TIMES    
#define GAME_INITIAL_VOL        (VOL_VALUE/4)

//#define DIGITAL_DIRECT_SELECT   //ZHX 101403 no use!
#define VFDECHO_DISPLAY         //ZHX 101403 no use!         
#define AX_ECHO_CTL             //ZHX 101403 no use!

#define VOCAL_CANCEL                        /*** define vocal cancel ***/
#ifdef VOCAL_CANCEL
#ifdef NINTAUS
#define MAX_CH_NUM  4                       //0:stereo 1:LL 2:RR 3:AUTO_L 4:AUTO_R
#else
#if CONFIG==CONFIG_COMBO_SVCD
#ifdef AX_ECHO_CTL
#define MAX_CH_NUM              4      //ZHX 092703 for aixin
#else
#define MAX_CH_NUM              4      //ZHX 092703 for aixin
#endif
//#define SUPPORT_DUAL_CHANNEL           //Joseph 20021212 add for Xinde SVCD 2ch -> 4ch
#else
#define MAX_CH_NUM  4                       //0:stereo 1:LL 2:RR 3:AUTO_L 4:AUTO_R
#endif
#endif
#define CH_AUTO_L   3
#define CH_AUTO_R   4
#define CH_AUTO_LR  5
#ifdef NINTAUS
#define MIC_AUTO_ON_THRESHOLD (0xc00)//(0x800),(0x550)
#else
#define MIC_AUTO_ON_THRESHOLD (0x1200)  //(0x1800)//(0x4000) VICTOR:1800h is to high to activate MIC when tapping MIC. Sep.10,2002
#endif
#define MIC_AUTO_OFF_DELAY    (2)   // in unit of second
#define PCM_HIGH_THRESHOLD    (60)  //new:for DC level Auto Fudu B point//old:(0x0400)
#else
#define MAX_CH_NUM      2
#endif
#define SCORE_INTERVAL  5               //10//*10ms interval local score
/*=========================================================\
| DEFINE TV SYSTEM                                                                               |  
\=========================================================*/
#define  NTSC      0
#define  PAL       1
#define  PAL_M     2
#if CONFIG_TV_SYS==PAL_M
#define MAX_TV_FORMAT 2
#else
#define MAX_TV_FORMAT 1
#endif

#define VIDEO_MOSAIC_MAX        350
#define VIDEO_MOSAIC_MID4       280
#define VIDEO_MOSAIC_MID3       210
#define VIDEO_MOSAIC_MID2       100
#define VIDEO_MOSAIC_MID1       70
#define VIDEO_MOSAIC_MIN        5
#define MAX_ERR_MBK             VIDEO_MOSAIC_MID2 //VIDEO_MOSAIC_MAX

#define SKIP_FIRST_VIDEO
//#define LOGO_704480  
#define LOGO_352288

/*=========================================================\
| DEFINE ECHO & MIC Function                                                             |  
\=========================================================*/
#define MIC_THRESHOLD     0x35
//(0~0xff:0x55:for Yuxing, 0x35 for small board, 0x25 for large board)

#if 1      //ZHX 100603 : 128*14+256=2552//6*14+40=124
#define ECHO_DELAY_AMP_BASE 508 
#define ECHO_DELAY_AMP      146 
#define ECHO_DECAY_BASE     40 
#define ECHO_DECAY_AMP      6
#else
#define ECHO_DELAY_AMP_BASE 508 
#define ECHO_DELAY_AMP      110 
#define ECHO_DECAY_BASE     32 
#define ECHO_DECAY_AMP      4
#endif

#if 0 //def NINTAUS
#define IR_PHILIPS
//#define DIR_LIST_4WAY
#define IR3
#else
#define IR_NEC
#define IR0
#endif

#define SPL10             2
#define WINBOND_W741E260F 3
#define SPL10_FOR_718     4 
#define UPD16311          5

#if(VFD_DRIVER==NEC16312)
#define FUT_269GK1      0       
#define HL_0056         1       
#define VFD_58          5
#define VFD_EQ          6
#define VFD_51          8
#define VFD13                   10
#define VFD32                   11
#define VFD58                   12
#define VFD63                   13
#define VFD97                   14
#define LED8G                   15     //ZHX 071503 
#elif(VFD_DRIVER==HT1621)   
#define LCD_SUNPLUS     2 
#define VFD_1621_DISC   7 
#define HTLCD                   21
#define HTLZD                   22
#define BV309                   23
#define LZDTN                   24
#else
#define LCD_TURNKEY     3         
#define LCD_TURNKEY2    4         
#endif

//#define NAV_BITS_DIFF

#ifdef POWERUP_ENGLISH
#define ENGLISH_        1
#define CHINESE_        0
#else
#define ENGLISH_        0
#define CHINESE_        1
#endif
#define CHINESE_MING_   1
#define CHINESE_KAI_    2

#ifdef  OSD_ENGLISH_ONLY     
#define OSD_DEF_LANGUAGE    ENGLISH_
#else
#define OSD_DEF_LANGUAGE    CHINESE_MING_
//#define OSD_DEF_LANGUAGE    CHINESE_KAI_
#endif  

//#define OSD_USE_INTERLACED                    

#define IR_5_PLUS     
#define IR_GOTO_ON
#define IR_PROG_ON
#define IR_PREVIEW_ON
#define DIRECT_PLAY_9FRM
//#define IR_SCORE_ON
#define IR_SHUFFLE_ON
#define IR_ECHO_ON
#define IR_FREEZE_ON
#define IR_REMAIN_ON
#define IR_LANGUAGE_ON
#define ECHO_KEY
#define IR_INTRO_ON    
#define IR_ZOOM_ON
#define IR_ZOOM_UP_ON
#define IR_ZOOM_DN_ON
#define IR_ZOOM_L_ON
#define IR_ZOOM_R_ON
#define MP3_SELECT_MORE
#define MP3_DIRECT_SELECT
#define MAX_BOOKMARK_CNT 1
#define IR_BOOK_MARK  
#define IR_SET_ERR_LEV

#ifdef IR_K49POWER
#define POWER_KEY
#endif

//#define GPIO_OPEN_CLOSE
//#define CHECK_READ_MP3_ERROR
//#define SUPPORT_VFD_SW 

#endif /*__USER_INIT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -