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

📄 board.h

📁 使用于克隆器
💻 H
字号:
/******************************************************************************
 Copyright (c) 2003 MStar Semiconductor, Inc.
 All rights reserved.

 [Module Name]: board.h
 [Date]:        25-Jun-2004
 [Comment]:
   MST I/O control header file.
 [Reversion History]:
*******************************************************************************/
#ifndef _BOARD_H_
#define _BOARD_H_

//////////////////////////////////////////////////
// System
//////////////////////////////////////////////////
#include "bd_mst.h"
//#include "bd_nmv.h"

#ifdef OLGA
#define NEW_LOCK
#endif

////////////
//The Type Selection 
///////////


/////////////////////////////////////////////////
// ir code  selection
/////////////////////////////////////////////////
#define IR_SANYO	0
#define IR_NEC		1
#define IR_RC5		2
#define IR_TOSHIBA	3

///////////////////////////////////////////
// DRAM type selection, Only for Pablo
///////////////////////////////////////////
#define SDR_4Mx16_1     0   // 16 bit bus, 8M
#define SDR_4Mx16_2     1   // 32 bit bus, 16M
#define DDR_4Mx32       2   // 32 bit bus, 16M
#define DDR_8Mx16_1     3   // 16 bit bus, 16M, VPC3230 demo board
#define DDR_8Mx16_2     4   // 32 bit bus, 32M, VPC3230 demo board
#define SDR_1Mx16_1     5   // 16 bit bus, 2M
#define SDR_1Mx16_2     6   // 32 bit bus, 4M
#define SDR_8Mx16_1     7   // 16 bit bus, 16M, TVP5146 & SAA7118 demo board
#define SDR_8Mx16_2     8   // 32 bit bus, 32M, TVP5146 & SAA7118 demo board
#define SDR_2Mx32_1     9   // 32 bit bus, 8M, TVP5146 & SAA7118 demo board

/////////////////////////////////////////
// MCU External Bus definition
/////////////////////////////////////////
#define DIRECT_BUS      0
#define DDR_NIBBLE_BUS  1

/////////////////////////////////////////
// EEPROM Selection
/////////////////////////////////////////
#define RM_TYPE_24C16    0
#define RM_TYPE_24C32    1

/////////////////////////////////////////
// Comb filter Type
////////////////////////////////////////
#define NOCOMB_CHIP  1
#define TC90A69_CHIP 2
#define TDA9181_CHIP 3
#define CombFilter_3D_CHIP  4
/////////////////////////////////////////
// Video Decoder Type
////////////////////////////////////////
#define VIDEO_DECODER_SAA711X   0
#define VIDEO_DECODER_VPC323X   1
#define VIDEO_DECODER_TVP51XX   2
#define VIDEO_DECODER_TB1274     3

////////////////////////////////////////////////////////
// video output format
////////////////////////////////////////////////////////
#define VD_OUPUT_8BITS_ITU656   0
#define VD_OUPUT_16BITS_ITU601  1

////////////////////////////////////////////////////////
// audio  decoder type
////////////////////////////////////////////////////////
#define AUDIO_DECODER_LV1116   0
#define AUDIO_DECODER_MSP34XX   1

////////////////////////////////////////////////////////
// IF Amplifier Type
////////////////////////////////////////////////////////
#define TV_IF_AMPLIFIER_NONE            0
#define TV_IF_AMPLIFIER_LA75665     1////////////////////////////////////////////////////////
// Frame buffer setting(Pablo only)
////////////////////////////////////////////////////////
#define MAIN_FRAME_BUFFER       0
#define MAIN_FRAME_BFFLESS      1
#define MAIN_FRAME_PC444        2
#define MAIN_FRAME_UXGA         4

///////////////////////////////////////////
// Panel selection
///////////////////////////////////////////
///////////////////////////////////////////
// Panel selection
///////////////////////////////////////////
#define PNL_DAC_720X480I      0
#define PNL_DAC_720X480P      1
#define PNL_DAC_720X576I      2
#define PNL_DAC_720X576P      3
#define PNL_DAC_720X833I      4
#define PNL_DAC_1024X768P     5
#define PNL_DAC_1920X1080     6
#define PNL_AU17_EN05_SXGA    7
#define PNL_AU20_VGA          8
#define PNL_AU20_SVGA         9
#define PNL_AU20_UXGA         10
#define PNL_CMO19_SXGA        11
#define PNL_CMO20_VGA         12
#define PNL_CMO27_WXGA        13
#define PNL_CMO29_WXGA        14
#define PNL_CMO32_WXGA        15
#define PNL_FU17_FLC43_WXGA   16
#define PNL_HAN15_XGA         17
#define PNL_HAN23_HSD230WX01A 18
#define PNL_LG17_SXGA         19
#define PNL_LG19_SXGA         20
#define PNL_LG17_LC171_WXGA   21
#define PNL_LG20_UXGA         22
#define PNL_LG23_LC230_WXGA   23
#define PNL_LG26_WXGA         24
#define PNL_LG30_LC300_WXGA   25
#define PNL_QDI17_EL07_SXGA   26
#define PNL_SEC_LTM170W1_L01  27
#define PNL_SH19_LQ197_VGA    28
#define PNL_SH20_B7B_UXGA     29
#define PNL_SAMSUNG24_WUXGA   30
#define PNL_CMO37_WUXGA       31
#define PNL_AU26_T260XW01_WXGA 32
#define PNL_LG15_XGA          33
#define PNL_SAMSUNG32_WXGA    34
#define PNL_SAMSUNG23_WXGA    35
#define PNL_LG32_WXGA    	  36
#define PNL_AU32_WXGA    	  37
#define PNL_LG37_WXGA    	  38
#define PNL_AU37_WUXGA    	  39
#define PNL_SVA26_WXGA    	  40
#define PNL_LC260WX2_WXGA     41
#define PNL_SAMSUNG32_W2_WXGA 42
#define PNL_SAMSUNG40_WS_WXGA 43
#define PNL_CMO27B1_WXGA        44

/////////////////////////////////////////////////
// TV System selection
/////////////////////////////////////////////////


#define DISABLE_VBI     0
#define SW_PARSER       1 // SW_CC
#define ZILOG86129      2 // HW_CC
#define ENABLE_TTX      3

#define ENABLE_CC_VCHIP ((VBI_FUNC_SEL==SW_PARSER)||(VBI_FUNC_SEL==ZILOG86129))

///////////////////////////////////////
// MCU delay definition
///////////////////////////////////////
// (MCU_MACHINE_CYCLE / 2) -> decimal fraction
#define MCU_MICROSECOND_NOP_NUM  ((MCU_XTAL_CLK_MHZ + (MCU_MACHINE_CYCLE / 2)) / MCU_MACHINE_CYCLE)

#if (MCU_MICROSECOND_NOP_NUM <= 1)
#undef MCU_MICROSECOND_NOP_NUM
#define MCU_MICROSECOND_NOP_NUM 1

#define MCU_Delay1us() \
    { \
        _nop_(); \
    }
#elif (MCU_MICROSECOND_NOP_NUM <= 2)
#define MCU_Delay1us() \
    { \
        _nop_(); \
        _nop_(); \
    }
#elif (MCU_MICROSECOND_NOP_NUM <= 3)
#define MCU_Delay1us() \
    { \
       _nop_(); \
        _nop_(); \
        _nop_(); \
    }
#elif (MCU_MICROSECOND_NOP_NUM <= 4)
#define MCU_Delay1us() \
    { \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
    }
#elif (MCU_MICROSECOND_NOP_NUM <= 5)
#define MCU_Delay1us() \
    { \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
    }
#elif (MCU_MICROSECOND_NOP_NUM <= 6)
#define MCU_Delay1us() \
    { \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
    }
#elif (MCU_MICROSECOND_NOP_NUM <= 7)
#define MCU_Delay1us() \
    { \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
    }
#else
#define MCU_Delay1us() \
    { \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
        _nop_(); \
    }
#endif


#endif

⌨️ 快捷键说明

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