📄 parameter.c
字号:
/********************************************************************************/
/*!
@file parameter.c
@brief 儐乕僓乕傾僾儕梡僌儘乕僶儖曄悢掕媊
@version $Revision: 2.00 $
@date 2007/XX/XX
@author Matsushita Electronics Co.,Ltd.
*/
/********************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <itron.h>
#include <kernel.h>
#include <kernel_id.h>
#include "..\gerda_dd\include\gerda_dd.h"
#include "..\gerda_dd\include\dd_sys.h"
#include "..\gerda_dd\include\gerda_reg.h"
#include "..\gerda_dd\dsp\dst_ram.h"
#include "..\gerda_dd\dsp\ini_def.h"
#include "..\texture\texdata.h"
#include "systype.h"
#include "sr103se60pub.h"
#include "option.h"
#include "if_cmd.h"
#include "if_mxr.h"
#include "if_txtid.h"
#include "parameter.h"
#include "dd_param.h"
#include "dspctrl.h"
/********************************************************************/
/* 儅僋儘掕媊 */
/********************************************************************/
/********************************************************************/
/* 掕悢愰尵 */
/********************************************************************/
const UCHAR pty_name1[] = "News";
const UCHAR pty_name2[] = "Current Affairs ";
const UCHAR pty_name3[] = "Information";
const UCHAR pty_name4[] = "Sport";
const UCHAR pty_name5[] = "Education";
const UCHAR pty_name6[] = "Drama";
const UCHAR pty_name7[] = "Culture";
const UCHAR pty_name8[] = "Science";
const UCHAR pty_name9[] = "Varied";
const UCHAR pty_name10[] = "Pop Music";
const UCHAR pty_name11[] = "Rock Music";
const UCHAR pty_name12[] = "M.O.R. Music";
const UCHAR pty_name13[] = "Light classical";
const UCHAR pty_name14[] = "Serious classical ";
const UCHAR pty_name15[] = "Other Music";
const UCHAR pty_name16[] = "Weather";
const UCHAR pty_name17[] = "Finance";
const UCHAR pty_name18[] = "Children's programs";
const UCHAR pty_name19[] = "Social Affairs";
const UCHAR pty_name20[] = "Religion";
const UCHAR pty_name21[] = "Phone In";
const UCHAR pty_name22[] = "Travel ";
const UCHAR pty_name23[] = "Leisure";
const UCHAR pty_name24[] = "Jazz Music";
const UCHAR pty_name25[] = "Country Music";
const UCHAR pty_name26[] = "National Music ";
const UCHAR pty_name27[] = "Oldies Music ";
const UCHAR pty_name28[] = "Folk Music";
const UCHAR pty_name29[] = "Documentary";
const UCHAR pty_name30[] = "Alarm Test";
const UCHAR pty_name31[] = "Alarm";
UCHAR PS_string_content1[8] ;
UCHAR PS_string_content2[8] ;
UCHAR PS_string_content3[8] ;
UCHAR PS_string_content4[8] ;
UCHAR PS_string_content5[8] ;
UCHAR PS_string_content6[8] ;
UCHAR PS_string_content7[8] ;
UCHAR PS_string_content8[8] ;
UCHAR MAINHST_d_sts_buf[1000];
//
const UCHAR dspchar0[] = "0123456789ABCDEF";
const UCHAR dspchar1[] = "GHIJKLMNOPKRSTUV";
const UCHAR dspchar2[] = "WXYZabcdefghijkl";
const UCHAR dspchar3[] = "mnopqrstuvwxyz ";
const UCHAR dspchar4[] = "0 1 2 3 4 5 6 7 ";
const UCHAR dspchar5[] = "A B C D E F G H ";
const UCHAR dspchar6[] = "a b c d e f g h ";
const UCHAR dspchar7[] = { 0x54,0x62,0x63,0x64 };//"MatrixEngineDEMO";
const wchar_t dspchar8[] = { 0xa3c1,0xa3c2,0xa3c3,0xa3c4,0xA3D0,0xA3D1,0xD2A3,0xD3A3,0xD4A3,0xa3b2,0xa3b3,0xa3b4,0xb3d1,0xc3d2,0xd3d3,0xa3d5};
//const UCHAR dspchar8[] = { 0xB0,0xA1, 0xB0,0xA2 };
#if (DEMOMODE == DEMOON)
const UCHAR tbl_SPEANA[30][4]={
{0x00, 0x04, 0x08, 0x0C},
{0x01, 0x05, 0x09, 0x0D},
{0x02, 0x06, 0x0A, 0x0E},
{0x03, 0x07, 0x0B, 0x0F},
{0x04, 0x08, 0x0C, 0x0E},
{0x05, 0x09, 0x0D, 0x0D},
{0x06, 0x0A, 0x0E, 0x0C},
{0x07, 0x0B, 0x0F, 0x0B},
{0x08, 0x0C, 0x0E, 0x0A},
{0x09, 0x0D, 0x0D, 0x09},
{0x0A, 0x0E, 0x0C, 0x08},
{0x0B, 0x0F, 0x0B, 0x07},
{0x0C, 0x0E, 0x0A, 0x06},
{0x0D, 0x0D, 0x09, 0x05},
{0x0E, 0x0C, 0x08, 0x04},
{0x0F, 0x0B, 0x07, 0x03},
{0x0E, 0x0A, 0x06, 0x02},
{0x0D, 0x09, 0x05, 0x01},
{0x0C, 0x08, 0x04, 0x00},
{0x0B, 0x07, 0x03, 0x01},
{0x0A, 0x06, 0x02, 0x02},
{0x09, 0x05, 0x01, 0x03},
{0x08, 0x04, 0x00, 0x04},
{0x07, 0x03, 0x01, 0x05},
{0x06, 0x02, 0x02, 0x06},
{0x05, 0x01, 0x03, 0x07},
{0x04, 0x00, 0x04, 0x08},
{0x03, 0x01, 0x05, 0x09},
{0x02, 0x02, 0x06, 0x0A},
{0x01, 0x03, 0x07, 0x0B},
};
#endif /* DEMOMODE==DEMOON */
/********************************************************************/
/* 曄悢愰尵 */
/********************************************************************/
UCHAR param[30]; /* 奺庬傾僾儕働乕僔儑儞忣曬曐帩梡乮侾僶僀僩乯 */
USHORT data; /* 奺庬傾僾儕働乕僔儑儞忣曬曐帩梡乮俀僶僀僩乯 */
UCHAR ucDSP_submode;
UCHAR intMAIN_statu=2;
UCHAR disc_exist=0;
UCHAR tuner_exist=0;
UCHAR TV_exist=0;
UCHAR SD_exist=0;
UCHAR USB_exist=0;
#if (MXMODE == MXROFF)
volatile USHORT tm_framein;
volatile USHORT tm_button;
volatile USHORT tm_video;
volatile USHORT tm_wait;
UCHAR video_mode;
UCHAR blink_button;
UCHAR dsp_src;
UCHAR camera_ch;
#if (SSPFMODE == SSPF_V1)
UCHAR ucDSP_setting[5];
UCHAR ucDSP_romver;
UCHAR ucDSP_lsiver;
UCHAR ucDSP_initmode;
UCHAR clock_mode;
UCHAR aircon_on;
UCHAR aircon_ex;
UCHAR audio_src;
UCHAR audio_tno;
UCHAR audio_min;
UCHAR audio_sec;
UCHAR audio_cdmode;
#endif /* SSPFMODE==SSPF_V1 */
#endif /* MXMODE */
#if (DEMOMODE == DEMOON)
volatile USHORT tm_1sec;
volatile USHORT tm_100ms;
volatile UCHAR demo_fno;
volatile UCHAR demo_tno;
volatile UCHAR demo_min;
volatile UCHAR demo_sec;
volatile UCHAR demo_idx;
UCHAR demo0_flag;
UCHAR demo1_flag;
UCHAR demo2_flag;
UCHAR demo3_flag;
#endif
ULONG* sdram_wptr;
#if 1 /* @005s6[08/01/13] */
USHORT unMXR_mouse_x;
USHORT unMXR_mouse_y;
USHORT unMXR_score;
USHORT unMXR_track;
#endif /* @005s6[08/01/13] */
#if 1 /* @006s6[08/01/13] */
ULONG* bmp_adr_ptr;
ULONG* bmp_plt_ptr;
UCHAR debug0_flag;
UCHAR debug0_idx;
ULONG* bmp_rptr;
#endif /* @006s6[08/01/13] */
#if 0 /* @016s3[08/02/29] */
//#if 1 /* @013s3[08/02/06] */
//ULONG bmp_adr_offset;
//#endif /* @013s3[08/02/06] */
#endif /* @016s3[08/02/29] */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -