📄 eb40_meta.inc
字号:
;------------------------------------------------------------------------------
;- 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 : eb40.inc
;- Object : Evaluation Board EB40 Definition File.
;-
;- 1.0 06/04/00 JPP : Creation
;- 1.1 30/10/00 JPP : Additing the EBI description
;- 1.2 16/01/01 JPP : Change for Metaware
;------------------------------------------------------------------------------
; INCLUDE ../../parts/r40807/r40807.inc ;- library definition
;---------------------------------------
;- AT91EB40 External Memories Definition
;---------------------------------------
;- Flash Memory : AT29LV1024 64k*16
FLASH_BASE EQU 0x01000000
EXT_SRAM_BASE EQU 0x02000000
EXT_SRAM_SIZE EQU (512*1024) ; 512 Kbytes
EXT_SRAM_LIMIT EQU (EXT_SRAM_BASE+EXT_SRAM_SIZE)
;------------------------------------------------------------------------------
;- EBI Initialization Data
;-------------------------
;- The EBI User Interface Image which is copied by the boot.
;- 32,768MHz master clock assumed.
;- That's hardware! Details in the Electrical Datasheet of the AT91 device.
;- EBI Base Address is added at the end for commodity in copy code.
;------------------------------------------------------------------------------
EBI_CSR_0 EQU (FLASH_BASE | 0x2529) ; 0x01000000, 16MB, 2 tdf, 16 bits, 2 WS
EBI_CSR_1 EQU (EXT_SRAM_BASE | 0x2121) ; 0x02000000, 16MB, 0 hold, 16 bits, 1 WS
EBI_CSR_2 EQU 0x20000000 ; unused
EBI_CSR_3 EQU 0x30000000 ; unused
EBI_CSR_4 EQU 0x40000000 ; unused
EBI_CSR_5 EQU 0x50000000 ; unused
EBI_CSR_6 EQU 0x60000000 ; unused
EBI_CSR_7 EQU 0x70000000 ; unused
;------------------------------------------------------------------------------
;- AT91M40x Initialization Data library
;--------------------------------------
;- In the ordinary the AT91M40x EBI Initialization it's realized by the library
;- include file but at this time all include file are not translate for Metaware
;- tools chain
;------------------------------------------------------------------------------
PS_BASE EQU 0xFFFF4000 ;- Power Saving Base Address
PS_PCER EQU 4 ;- Peripheral Clock Enable Register
AIC_BASE EQU 0xFFFFF000 ;- AIC BAse Address
AIC_SPU EQU 0x0134 ;- Spurious Vector Register
AIC_EOICR EQU 0x0130 ;- Interrupt Command Register
AIC_SVR EQU 0x0080 ;- Source Vector Register
AIC_IVR EQU 0x0100
EBI_BASE EQU 0xFFE00000 ;- Address of EBI User Interface base
;--------------------------
;- Internal RAM Definition
;--------------------------
RAM_SIZE EQU (8*1024)
RAM_BASE EQU (0x00000000)
RAM_LIMIT EQU (RAM_BASE + RAM_SIZE)
;- The internal RAM is mapped at address 0x00300000 after reset until
;- Remap command is performed on the EBI.
RAM_BASE_BOOT EQU 0x00300000
;--------------------------------
;- ARM Core Mode and Status Bits defined in spftware/perif/arm7tdmi/arm.inc
;--------------------------------
ARM_MODE_USER EQU 0x10
ARM_MODE_FIQ EQU 0x11
ARM_MODE_IRQ EQU 0x12
ARM_MODE_SVC EQU 0x13
ARM_MODE_ABORT EQU 0x17
ARM_MODE_UNDEF EQU 0x1B
ARM_MODE_SYS EQU 0x1F
I_BIT EQU 0x80
F_BIT EQU 0x40
T_BIT EQU 0x20
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -