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

📄 memory.h

📁 基于Freescale的MX21处理器的bootloader程序
💻 H
字号:
/*-------------------------------------------------------------------
FILE NAME:
	memory.h
DESCRIPTION:
	this file includes memory allocate . 
AUTHOR:
	WYF
VERSION:
	2005.1122.00
COMPANY:
	DATANG MICROELECTRONICS TECHNOLOGY CO,.LTD
HISTORY:
	2005.1122 Creat this file
	...
--------------------------------------------------------------------*/


#ifndef __ADSMX21_MEMORY_H
#define __ADSMX21_MEMORY_H

/*-------------------------------------------------------------------
TYPE      |      ADDRESS RANGE        |   LENGTH
SDRAM        0xc0000000~0xc3ffffff        0x04000000 (64M)
SRAM         0xffffe800~0xffffffff        0x00001800 (6K)
NOR Flash    0xc8000000~0xc9ffffff        0x02000000 (32M)

MMU Map: virtual address = phisical address except 
Virtual ADDR    PHISICAL ADDR    LENGTH
0xfffff000   -> 0x00000000       0x1000 (4K)  (used to restore interrupt vectors)

Cache On regions:
TYPE      |      ADDRESS RANGE        |   LENGTH
SDRAM       0xc0800000~0xc3ffffff        0x03800000 (56M)
SRAM        0x00000000~0x00001000        0x00001000 (4K) 

--------------------------------------------------------------------*/
#define SDRAM_SIZE          0x04000000
#define SDRAM_NOCACHE_BASE  0xc0000000
#define SDRAM_CACHE_BASE    0xc0800000


/*-------------------------------------------------------------------
   No cached Memeory allocation
---------------------------------------------------------------------
ADDRESS    | LENGTH           | Description
0xc0000000   0x00010000 (64K)   Restore MMU table
0xc0010000   0x003e0000         --Not allocate
0xc0400000   0x00028000 (160K)  LCD main display buffer(bottom)
0xc0428000   0x00028000 (160K)  LCD graphic display buffer(top)
0xc0450000   0x00028000 (160K)  CSI frame buffer 1
0xc0478000   0x00028000 (160K)  CSI frame buffer 2
0xc04a0000   0x00028000 (160K)  LCD rotate buffer
0xc04c8000   0x00338000         --Not allocate

--------------------------------------------------------------------*/
#define MMUTABLE_BASE       0xc0000000
#define MMUTABLE_SIZE       0x00010000 /* 64K */

#define LCDC_MAINWINDOW     0xc0400000
#define LCDC_GRAPHICWINDOW  0xc0428000
#define CSI_FRAME320X240_1  0xc0450000
#define CSI_FRAME320X240_2  0xc0478000
#define LCDC_ROTATION_BUF   0xc04A0000

#define TFTP_DATA_BASE      0xc2200000

#define FLASH_BASE          0xc8000000
#define FLASH_LENGTH        0x02000000


#endif

⌨️ 快捷键说明

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