eb_desc.h

来自「使用JTAG口对AT91R40008芯片进行FLASH编程的程序」· C头文件 代码 · 共 94 行

H
94
字号
//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : eb_desc.h
//* Object              : Evaluation Board Definition File.
//*
//* 1.0 9/04/02 NL    : Creation
//*----------------------------------------------------------------------------

#ifndef eb_desc_h
#define eb_desc_h

//*----------------------------------------------------------------------------
//* Enum
typedef enum Type_Instr {
	READ,
	WRITE,
	POLL
} Type_Instr;

//*----------------------------------------------------------------------------
//* Structure
typedef struct Instr {
	
	Type_Instr	type_instr;
	u_int 		address;
	u_int		data;

} Instr;

typedef struct Init_Periph {

	Instr		*instruction;
	u_short		nb_instr;

} Init_Periph;

typedef struct Program {
	
	u_int	*prg;
	u_int 	size;
	u_int	load_addr;

} Program;

typedef struct Target {

	u_int	id_chip;
	Init_Periph	 pll;
	Init_Periph	 ebi;
	u_short	flash;
	Program	flash_prg;
	Program flash_ident;
	Program boot;
	Program angel;
	Program appli;
	Program mirror;

} Target;

//*----------------------------------------------------------------------------
//* Constants

	//* Periph
#define		EBI		0
#define		PLL		1

	//* Targets
#define		EB40	0x04080700
#define		EB40A	0x04000800
#define		EB42	0x04280000
#define		EB55	0x05580000
#define		EB63	0x06320000

#define		NB_TARGET_SUPPORTED		5

	//* Flash type
#define		FLASH_LV	0
#define		FLASH_BV	1

	//* Flash Program Address 
#define		FLASH_LV_PRG	0x01018000
#define		FLASH_BV_PRG	0x0101A000




#endif /* flash_uploader_appl_h */

⌨️ 快捷键说明

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