c642vfm.h

来自「基于TI的DM642开发板VFMDM642的flash烧写程序」· C头文件 代码 · 共 43 行

H
43
字号
/**********************************************************************
*          (C) COPYRIGHT NUST, INC. 2008			 				  *
***********************************************************************
* FILENAME
*   c642vfm.h -- Loosely copied from preliminary file
*
*
* DESCRIPTION
*   DSK Header File
*   Used by Russ as part of FlashBurn project.
*
*/

/* Register definitions for C642VFM chip on DSK */

/* Define EMIF Registers  */
#define EMIFA_GCTL       0x01800000
#define EMIFA_CE1        0x01800004
#define EMIFA_CE0        0x01800008
#define EMIFA_CE2        0x01800010
#define EMIFA_CE3        0x01800014
#define EMIFA_SDRAMCTL   0x01800018
#define EMIFA_SDRAMTIM   0x0180001c
#define EMIFA_SDRAMEXT   0x01800020
#define EMIFA_CE1SECCTL  0x01800044
#define EMIFA_CE0SECCTL  0x01800048
#define EMIFA_CE2SECCTL  0x01800050
#define EMIFA_CE3SECCTL  0x01800054


#define FLASH_SIZE		0x400000 
#define FLASH_START		0x90000000
#define FLASH_END		(FLASH_START + FLASH_SIZE)
#define FLASH_SECTORS   0x40
#define FLASH_PAGE      ((volatile unsigned char *)0xA0080018)

#define FLASH_KEY1		0xAA
#define FLASH_KEY2		0x55
#define FLASH_KEY3		0xA0
#define FLASH_KEY4		0x80
#define FLASH_KEY5		0x10
#define FLASH_KEY6      0x30

⌨️ 快捷键说明

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