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

📄 image_cfg.h

📁 老外的一个开源项目
💻 H
字号:
// Copyright (c) David Vescovi.  All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------------------------
//
//  File:  image_cfg.h
//
//  Defines configuration parameters used to create the NK and Bootloader
//  program images.
//
//------------------------------------------------------------------------------
#ifndef _IMAGE_CFG_H_
#define _IMAGE_CFG_H_

#if __cplusplus
extern "C" {
#endif

//------------------------------------------------------------------------------
//  RESTRICTION
//
//  This file is a configuration file. It should ONLY contain simple #define 
//  directives defining constants. This file is included by other files that 
//  only support simple substitutions.
//
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//  NAMING CONVENTION
//
//  The IMAGE_ naming convention ...
//
//  IMAGE_<NAME>_<SECTION>_<MEMORY_DEVICE>_[OFFSET|SIZE|START|END]
//
//      <NAME>          - WINCE, BOOT, SHARE
//      <SECTION>       - section name: user defined
//      <MEMORY_DEVICE> - the memory device the block resides on
//      OFFSET          - number of bytes from memory device start address
//      SIZE            - maximum size of the block
//      START           - start address of block    (device address + offset)
//      END             - end address of block      (start address  + size - 1)
//
//------------------------------------------------------------------------------

#define IMAGE_SHARE_ARGS_UA_START           0xA00FF000
#define IMAGE_SHARE_ARGS_CA_START           0x800FF000
#define IMAGE_SHARE_ARGS_SIZE               0x00001000
#define IMAGE_NK_CA_START					(IMAGE_SHARE_ARGS_CA_START + IMAGE_SHARE_ARGS_SIZE)

#define IMAGE_BOOT_BLDRIMAGE_FLASH_OFFSET   0x00000000
#define IMAGE_BOOT_BLDRIMAGE_RAM_OFFSET     0x00020000
#define IMAGE_BOOT_BLDRIMAGE_RAM_SIZE       0x00040000

#define IMAGE_BOOT_BLDRIMAGE_FLASH_PA_START (BOOT_FLASH_PA_BASE + IMAGE_BOOT_BLDRIMAGE_FLASH_OFFSET)
#define IMAGE_BOOT_BLDRIMAGE_FLASH_PA_END   (IMAGE_BOOT_BLDRIMAGE_FLASH_PA_START + IMAGE_BOOT_BLDRIMAGE_RAM_SIZE - 1)
#define IMAGE_BOOT_BLDRIMAGE_RAM_PA_START   (BASE_PA_SDRAM + IMAGE_BOOT_BLDRIMAGE_RAM_OFFSET)
#define IMAGE_BOOT_BLDRIMAGE_RAM_PA_END     (IMAGE_BOOT_BLDRIMAGE_RAM_PA_START + IMAGE_BOOT_BLDRIMAGE_RAM_SIZE - 1)

#define IMAGE_BOOT_STACK_RAM_UA_START       0xA0010000

#define IMAGE_BOOT_CONFIG_FLASH_OFFSET      0x00040000

// persistant registry
// Registry stored in last 6 blocks of Flash 
#define IMAGE_WINCE_PERREG_FLASH16M_OFFSET  0x00F40000
#define IMAGE_WINCE_PERREG_FLASH4M_OFFSET   0x00340000
#define IMAGE_WINCE_PERREG_FLASH16M_PA_START (BOOT_FLASH_PA_BASE + IMAGE_WINCE_PERREG_FLASH16M_OFFSET)
#define IMAGE_WINCE_PERREG_FLASH4M_PA_START  (BOOT_FLASH_PA_BASE + IMAGE_WINCE_PERREG_FLASH4M_OFFSET)
#define IMAGE_WINCE_PERREG_SIZE 			0x000C0000		// 6 blocks ~786Kb

//
// SDRAM base address
// see config.bib and oemaddetab_cfg.inc
#define SDRAM_PA_BASE						0xA0000000
#define SDRAM_CA_BASE						0x80000000
#define SDRAM_UA_BASE						0xA0000000
#define SDRAM_SIZE							0x04000000

//
// Chip selects
//
// nCS0: Boot FLASH
#define BOOT_FLASH_PA_BASE					0x00000000
#define BOOT_FLASH_4M_SIZE					0x00400000
#define BOOT_FLASH_16M_SIZE					0x01000000
//
// nCS1: Ethernet 1 (SMSC 91C111)
#define SMSC_ETH1_PA_BASE_REG				0x04000000
//
// nCS2: Ethernet 2 (SMSC 91C111)
#define SMSC_ETH2_PA_BASE_REG				0x08000000
//
// nCS3:
#define CS3_PA_BASE							0x0C000000
//
// nCS4:
#define CS4_PA_BASE							0x10000000
//
// nCS5:
#define CS5_PA_BASE							0x14000000

	
	
//------------------------------------------------------------------------------

#if __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

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