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

📄 mxd_sdk_porting.h

📁 MXD_SDK_Ax.x.xxx :MXD1320 软件开发包源码
💻 H
字号:
/*!
 *
 * \file    mxd_sdk_porting.h
 *
 * \brief    Contain the porting config and definitions.
 *
 * \par    Include files
 * - none
 *
 * \par    Copyright (c) 2007 Maxscend Technologies Inc. All rights reserved
 *
 * PROPRIETARY RIGHTS of Maxscend Technologies Inc. are involved in
 * the subject matter of this material.  All manufacturing, reproduction, 
 * use, and sales rights pertaining to this subject matter are governed 
 * by the license agreement.  The recipient of this software implicitly 
 * accepts the terms of the license.
 * 
 * \version
 * Revision of last commit: $Rev:: 315                        $
 * Author of last commit  : $Author:: MAXSCEND\peng.chen      $
 * Date of last commit    : $Date:: 2007-11-23 15:39:54 +0800#$
 *
 */

#ifndef __MXD_SDK_PORTING_H__
#define __MXD_SDK_PORTING_H__

#ifdef __cplusplus
extern "C"{
#endif

/**********************************************************************************
 * Definitions For I2C & TS Port
 **********************************************************************************
 */
#ifdef __I2C_TS_USED__
/* porting point - please modify these definitions for your I2C */
#define I2C_BIT_RATE_IN_KHZ    400
#define MXD_I2C_SLAVE_ADDR    0x68
#define MAX_I2C_BURST_WRITE_LEN    512

/* porting point - please modify these definitions for your TS Port */
#define MP2TS_DATA_TYPE    MP2TS_PARALLEL_TYPE  /* enum : MP2TS_TRANSFER_TYPE_E from mxd_sdk_data.h */
#define MP2TS_CLKFREQ_QUA_24M    24576  /*24.576MHz*/
#define MP2TS_CLKFREQ_QUA_12M    12288  /*12.288MHz*/
#define MP2TS_CLKFREQ_QUA_6M    6144  /* 6.144MHz */
#define MP2TS_CLKFREQ_QUA_3M    3072  /* 3.072MHz */
#define MP2TS_CLK_FREQ_IN_KHZ    MP2TS_CLKFREQ_QUA_6M

#define MP2TS_BYTE_MODE    MP2TS_MSB_MODE  /* enum : MP2TS_TRANSFER_MODE_E from mxd_sdk_data.h */
#define MP2TS_TRIGGER_EDGE    MP2TS_POSITIVE_EDGE  /* enum : MP2TS_TRIGGER_EDGE_E from mxd_sdk_data.h */

#endif /* end of #ifdef __I2C_TS_USED__ */

/**********************************************************************************
 * Definitions For SDRAM
 **********************************************************************************
 */
/* porting point - please modify these definitions for your SDRAM according to SDRAM Datasheet */
#define SDRAM_BURST_LENGTH    2
#define SDRAM_BURST_TYPE    0
#define SDRAM_CAS    30
#define SDRAM_RAS    60
#define SDRAM_RC    100
#define SDRAM_REFRESH_PERIOD    32
#define SDRAM_RFC    100
#define SDRAM_RP    30
#define SDRAM_RRD    20
#define SDRAM_MRD    20
#define SDRAM_XP    20
#define SDRAM_TWR    20
#define SDRAM_CALIBVAL 4 /*recomment*/

/**********************************************************************************
 * Definitions For Tuner
 **********************************************************************************
 */
/* porting point - please modify these definitions for your tuner, if tuner is ctrled by MXD1320 */
#define LIF_FREQ_IN_KHZ    36167  /* in KHz */
#define TUNER_NZIF_LIF    1  /* 1: LIF; 0: ZIF */

#ifndef __TUNER_EXT_CTRL__
#define TUNER_SALVE_ADDR_VAL    0x61
#endif /* end of #ifdef __TUNER_EXT_CTRL__ */

/**********************************************************************************
 * Definitions For E2PROM
 **********************************************************************************
 */
/* porting point - please modify these definitions for your e2prom slave address */
#ifdef __EEPROM_USED__
#define E2PROM_SLAVE_ADDR    0x50
#endif /* end of __EEPROM_USED__ */

#ifdef __cplusplus
}
#endif

#endif /* end of __MXD_SDK_PORTING_H__ */

/* end of mxd_sdk_porting.h */

⌨️ 快捷键说明

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