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

📄 tvpflash.h

📁 ti的数字电视芯片 tvp9000的源码
💻 H
字号:
#ifndef TVPFLASH_DOT_H_IS_DEFINED
#define TVPFLASH_DOT_H_IS_DEFINED

/***************************************************************************** 
*    Property of Texas Instruments Incorporated, Copyright 2004
*    All rights reserved
******************************************************************************/
/*********************************************************************
*
* Description:
*  TvpFlash.h contains all private global defines.
*   
*   
**********************************************************************/
/*********************************************************************
*
* $Revision: $
*
* $History: TvpFlash.h $
* 
* 
*********************************************************************/
#define TVP_FLASH_PAGES       16             // number of flash pages in MB

#define TVP_FH_END            0xffffffff     // flag to indicate we are done with data sections
#define TVP_FH_SKIP           0xffffffff     // flag to indicate update value is not used

#define TVP_FH_MAGIC0         0x42434a20     // magic word 0
#define TVP_FH_MAGIC1         0x43535420     // magic word 1

// where or where is the flash ?

#define TVP_FLASH_BASE     TVP_EXT_CS0_BASE  // address of flash
#define TVP_FLASH_CFG0     TVP_EXT_CS0_CFG0  // configuration 0
#define TVP_FLASH_CFG1     TVP_EXT_CS0_CFG1  // configuration 1
#define TVP_FLASH_CFG2     TVP_EXT_CS0_CFG2  // configuration 2
#define TVP_FLASH_CFG3     TVP_EXT_CS0_CFG3  // configuration 3
#define TVP_FLASH_CFG4     TVP_EXT_CS0_CFG4  // configuration 3

// offsets in file header program file for CONSTANTS

#define TVP_FH_MAGIC_WORD0   0x00000008      // (long) x20 magic word 0
#define TVP_FH_MAGIC_WORD1   0x00000009      // (long) x24 magic word 1
#define TVP_FH_MAGIC_WORD2   0x0000000a      // (long) x28 magic word 2
#define TVP_FH_MAGIC_WORD3   0x0000000b      // (long) x2c magic word 3
#define TVP_FH_MAGIC_WORD4   0x0000000c      // (long) x30 magic word 4
#define TVP_FH_SDRCONFIG     0x0000000d      // (long) x34 sdram ocnfiguration

#define TVP_FH_CFG0          0x0000000e      // (long) x38 CS0 configuration 0
#define TVP_FH_CFG1          0x0000000f      // (long) x3c CS0 configuration 1
#define TVP_FH_CFG2          0x00000010      // (long) x40 CS0 configuration 2
#define TVP_FH_CFG3          0x00000011      // (long) x44 CS0 configuration 3
#define TVP_FH_CFG4          0x00000012      // (long) x48 CS0 configuration 4
#define TVP_FH_RSVD          0x00000013      // (long) x4c Reserved 
#define TVP_FH_VECTOR        0x00000014      // (long) x50 vector address to branch to

#define TVP_FH_LENGTH_START  0x00000015      // (long) x54 size of flash in 8 bit bytes

// defualt flash configuration

#define TVP_FLASH_DEFCONFIG1  TVP_EBI_CS0_CFG1  // default configuration 1
#define TVP_FLASH_DEFCONFIG2  TVP_EBI_CS0_CFG2  // default configuration 2
#define TVP_FLASH_DEFCONFIG3  TVP_EBI_CS0_CFG3  // default configuration 3
#define TVP_FLASH_DEFCONFIG4  TVP_EBI_CS0_CFG4  // default configuration 4

#define TVP_FLASH_DEFCONFIG0A  TVP_EBI_CS0_CFG0A// default configuration 0a
#define TVP_FLASH_DEFCONFIG0B  TVP_EBI_CS0_CFG0B// default configuration 0b
#define TVP_FLASH_DEFCONFIG0C  TVP_EBI_CS0_CFG0C// default configuration 0c
#define TVP_FLASH_DEFCONFIG0D  TVP_EBI_CS0_CFG0D// default configuration 0d

#endif

⌨️ 快捷键说明

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