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

📄 userinit.h

📁 C语言编写的监控中心终端程序。基于GPRS上传收发数据功能
💻 H
字号:
#ifndef	__USER_INIT_H
#define	__USER_INIT_H

#include "cddsp.h"
#include "rom.h"
#include "..\..\makedef.h"

/*==============================================================\
| CUSTOMER DEFINITIONS						|
\==============================================================*/
#ifndef	RELEASE			// Add your customer define in this paragraph
/*
#define	NINTAUS			// ELP_EMU:disable
#define	ELP
*/
#endif

/*==============================================================\
| GENERAL DEFINITIONS						|
\==============================================================*/
#define	PREVIEW_TIME_FIRST	15
#define	PREVIEW_TIME		5

#define	PASSWORD				// KEY to show F/W version
#undef	START_UP_PBC_ON				// start up pbc on

#define	VOL_VALUE		16		// define volume inital value, MAX == 16
#define	PROG_NO_MAX		20		// Max programmable song number
#define	RESUME_ONE_TIMES			// only resume one time

/*==============================================================\
| DEFINE VOCAL CANCEL FUNCTION					|
\==============================================================*/
#define	VOCAL_CANCEL				// define vocal cancel

#ifdef VOCAL_CANCEL
/*	0 : stereo
	1 : LL
	2 : RR
	3 : AUTO_L
	4 : AUTO_R
	5 : AUTO_LR
*/
#ifdef NINTAUS
#define	MAX_CH_NUM		4
#else
#if (CONFIG == CONFIG_COMBO_SVCD)
#define	MAX_CH_NUM		5
#define	SUPPORT_DUAL_CHANNEL			// Joseph 20021212 add for Xinde SVCD 2ch -> 4ch
#else
#define	MAX_CH_NUM		4
#endif
#endif

/*
#define	CH_LR			0		// define in auctrl.h
#define	CH_LL			1		// define in auctrl.h
#define	CH_RR			2		// define in auctrl.h
*/
#define	CH_AUTO_L		3
#define	CH_AUTO_R		4
#define	CH_AUTO_LR		5

// VICTOR:1800h is to high to activate MIC when tapping MIC. Sep.10,2002
#ifdef NINTAUS
#define	MIC_AUTO_ON_THRESHOLD	(0xc00)		// (0x800),(0x550)
#else
#define	MIC_AUTO_ON_THRESHOLD	(0x1200)	// (0x1800),(0x4000)
#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
#define	CONFIG_TV_SYS		PAL

#if (CONFIG_TV_SYS == PAL_M)
#define	MAX_TV_FORMAT		2
#else
#define	MAX_TV_FORMAT		1
#endif

/*==============================================================\
| DEFINE Error Mosaic Level					|
\==============================================================*/
#define	VIDEO_MOSAIC_MAX	350
#define	VIDEO_MOSAIC_MID7	330
#define	VIDEO_MOSAIC_MID6	310
#define	VIDEO_MOSAIC_MID5	280
#define	VIDEO_MOSAIC_MID4	240
#define	VIDEO_MOSAIC_MID3	210
#define	VIDEO_MOSAIC_MID2	100		// 140 ////jhuang playability 2002/12/4
#define	VIDEO_MOSAIC_MID1	70
#define	VIDEO_MOSAIC_MIN	5

#define	MAX_ERR_MBK		VIDEO_MOSAIC_MID2	// VIDEO_MOSAIC_MAX

/*==============================================================\
| DEFINE EXTRA VIDEO PROCESSING					|
\==============================================================*/
#define	SKIP_FIRST_VIDEO

/*==============================================================\
| DEFINE LOGO SIZE                                                                               |
\==============================================================*/
/*
#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)
/*
#define	ECHO_DELAY_AMP		96		// 96*16steps=max level // max level:512*3
#define	ECHO_DECAY_BASE		0
#define	ECHO_DECAY_AMP		16		// ECHO_DECAY_BASE+16*16steps=max level // max level:256 ref to 1
*/

#if (CONFIG == CONFIG_COMBO_SVCD)
/*
    case1 : echo working buffer 3K:max level=512*3
	delay=>(384)+(72)*16=512*3
	decay=>(32)+(4)*16=96<128
    case2 : echo working buffer 6k:max level=512*4
	delay=>(768)+(80)*16=512*4
	decay=>(48)+(4)*16=112<128
    case2 : echo working buffer 6k:max level=512*4	// NINTAUS use
	delay=>(600)+(70)*16<512*4
	decay=>(48)+(4)*16=112<128
*/
#define	ECHO_DELAY_AMP_BASE	600
#define	ECHO_DELAY_AMP		120	// Nintaus use 70(2002/12/3) // ECHO_DELAY_AMP_BASE+ECHO_DELAY_AMP*16steps=max level
#define	ECHO_DECAY_BASE		48
#define	ECHO_DECAY_AMP		4	// ECHO_DECAY_BASE+ECHO_DECAY_AMP*16steps=max level // max level:256 ref to 1
#else
#define	ECHO_DELAY_AMP_BASE	416
#define	ECHO_DELAY_AMP		80	// x*14steps=max level // max level:512*3
#define	ECHO_DECAY_BASE		32
#define	ECHO_DECAY_AMP		4	// ECHO_DECAY_BASE+x*14steps=max level // max level:256 ref to 1
#endif

/*
#define	ECHO_FUNCTION
*/

/*==============================================================\
| DEFINE IR FORMAT						|
\==============================================================*/
/*
#define	IR_NEC
#define	IR_PHILIPS
*/

#ifdef NINTAUS
#define	IR_PHILIPS
/*
#define	DIR_LIST_4WAY
*/
#else
#define	IR_NEC
#endif

/*==============================================================\
| DEFINE IR REMOTE CONTROLLER FORMAT				|
\==============================================================*/
#ifdef NINTAUS
#define	IR3
#else
#define	IR0
#endif

/*==============================================================\
| DEFINE VFD							|
\==============================================================*/
#define	NEC16312		0
#define	HT1621			1
#define	SPL10			2
#define	WINBOND_W741E260F	3
#if defined(LCD_PANEL) || defined(LCD_40151)
#define	VFD_DRIVER		HT1621		// Define VFD driver type
#define	HT1621_PANNEL
#else
#define	VFD_DRIVER		NEC16312	// Define VFD driver type
#endif

#define	FUT_269GK1		0		// Define VFD module type
#define	HL_0056			1		// Define VFD module type
#define	LCD_FEELSUN		2		// Define LCD module type
#define	LCD_TURNKEY		3		// Define LCD module type
#define	LCD_TURNKEY2		4		// Define LCD module type
#define	VFD_58			5		// They call it 58,so I name it. huziqin
#define	VFD_MODULE		VFD_58		// Define VFD module type

/*==============================================================\
| Special options						|
\==============================================================*/
/*
#define	NAV_BITS_DIFF
*/

/*==============================================================\
| DEFINE OSD FONT VERSION					|
\==============================================================*/
#define	ENGLISH_		0
#define	CHINESE_		1
#define	CHINESE_MING_		1
#define	CHINESE_KAI_		2

/*
#define	OSD_ENGLISH_ONLY			// Use ENGLISH only(礚猭い璣ち传)
*/

#ifdef OSD_ENGLISH_ONLY
#define	OSD_DEF_LANGUAGE	ENGLISH_	// power on default language:english
#else
#define	OSD_DEF_LANGUAGE	CHINESE_MING_	// power on default language:chinese
/*
#define	OSD_DEF_LANGUAGE	CHINESE_KAI_	// power on default language:chinese
*/
#endif

/*
#define	OSD_USE_INTERLACED
*/

/*==============================================================\
| DEFINE EXTRA IR plus KEY					|
\==============================================================*/
/*
#define	IR_20_PLUS
#define	USE_P5_KEY
*/

/*==============================================================\
| DEFINE IR optional FUNCTION					|
\==============================================================*/
#if (CONFIG == CONFIG_COMBO_SVCD)
#undef	IR_GOTO_ON
#undef	IR_PROG_ON
#undef	IR_REMAIN_ON
#undef	IR_PREVIEW_ON
#undef	IR_INTRO_ON
#undef	IR_FREEZE_ON
#undef	IR_SHUFFLE_ON

#undef	IR_SETUP_MENU_ON

#if 0 // ndef IR_SETUP_MENU_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
#endif

#undef	IR_SCORE_ON
#undef	IR_FDFC_ON

// kevinlu move discman seting

#else // (CONFIG == CONFIG_COMBO_VCD)
#define	IR_GOTO_ON
#define	IR_PROG_ON
/*
#define	IR_REMAIN_ON
*/
#define	IR_PREVIEW_ON
/*
#define	IR_INTRO_ON
*/
#define	IR_SHUFFLE_ON
/*
#define	IR_FASTCD_ON				// kernel function not affect
#define	IR_FREEZE_ON				// kernel function not affect
#define	IR_ECHO_ON
#define	LINEAR_PLAY_9FRAME
*/
#define	IR_SETUP_MENU_ON

#ifndef IR_SETUP_MENU_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
#endif

/*
#define	IR_SCORE_ON
#define	IR_FDFC_ON
*/

#ifdef IR_FDFC_ON
/*
#define	IR_FDFC_OPMODE_ON
*/
#endif

#endif // (CONFIG == CONFIG_COMBO_VCD)

/*
#define	ECHO_KEY		// Some clients like to make direct key to control
				// echo than config echo in the setup menu.So I add 2 keys for them
*/

#define	MAX_BOOKMARK_CNT	8
#ifdef USE_BOOK_MARK_KEY
#define	IR_BOOK_MARK
#endif

/*
#define	IR_SET_ERR_LEV		// to set correct error level
*/

#ifdef USE_POWER_KEY
#define	POWER_KEY
#endif

#ifdef USE_LANGUAGE_KEY
#define	IR_LANGUAGE_ON
#endif

#define	MP3_DIRECT_SELECT	// break limit of files in dir
#define	DIRECT_PLAY_9FRM	// goback to big screen when number key on huziqin 2003-3-15

/* ===================================================*
 *	GPS global defined here			      *
 *====================================================*/
#if defined(SUPPORT_UART_VOICE) || defined(SUPPORT_WINBOND_VOICE)
#define	SUPPORT_VOICE
#endif

#endif __USER_INIT_H

⌨️ 快捷键说明

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