📄 lpc_vector_init_condition.inc
字号:
/*
***********************************************************************
Embest Info&Tech Co., Ltd. All rights reserved.
www.embedinfo.com
***********************************************************************
---------------- file information -------------------------------------
file name: lpc_vector_init_condition.inc
version : v0
author : peter pan / panqan@hotmail.com
panqian@embedinfo.com
begin : 2006-02-10
finish : 2006-02-10
define : init condition for compiler
notes :
---------------- modify information -----------------------------------
version :
modify :
begin :
finish :
define :
-----------------------------------------------------------------------
*/
/* need to be define when use memmap
map_to_boot_block
map_to_internal_flash
map_to_internal_sram
map_to_extend_memory
*/
# memmap define
#(-----------------------------------------------------------------
/*
00: bootblock(philips would check sum)
01: internal flash
10: internal sram(need copy to this address)
11: extend flash(0x81000000 begin)
*/
.IFDEF map_to_boot_block
.EQU MEMMAP_VALUE, 0x00
.EQU MEMMAP_ADDRESS, 0x00
#internal flash_boot
#needless op
#vector will be remap by flash boot
.ENDIF
.IFDEF map_to_internal_flash
.EQU MEMMAP_VALUE, 0x01
.EQU MEMMAP_ADDRESS, 0x00
#internal flash
#needless op
.ENDIF
.IFDEF map_to_internal_sram
.EQU MEMMAP_VALUE, 0x10
.EQU MEMMAP_ADDRESS, 0x40000000
#internal SRAM
.ENDIF
.IFDEF map_to_extend_memory
.EQU MEMMAP_VALUE, 0x11
.EQU MEMMAP_ADDRESS, 0x80000000
#SRAM address
.ENDIF
#-----------------------------------------------------------------)
/* need to be define when use memmap
stack_extend_sram_1M
stack_extend_sram_2M
stack_internal_sram
stack_internal_sram
LPC2210/2212/2214/2290/2292/2294//LPC2220
*/
# the stack base define of different arm cpu
# give the top memeory address and it may be
# align by word
#(-----------------------------------------------------------------
.IFDEF stack_extend_sram_1M
.EQU Top_Stack, 0x810FFFFC
.ENDIF
.IFDEF stack_extend_sram_2M
.EQU Top_Stack, 0x811FFFFC
.ENDIF
.IFDEF stack_internal_sram
.IFDEF LPC2220
.EQU Top_Stack, 0x4000FFFC
.ENDIF
.IFDEF LPC2210
.EQU Top_Stack, 0x40003FFC
.ENDIF
.IFDEF LPC2212
.EQU Top_Stack, 0x40003FFC
.ENDIF
.IFDEF LPC2214
.EQU Top_Stack, 0x40003FFC
.ENDIF
.IFDEF LPC2290
.EQU Top_Stack, 0x40003FFC
.ENDIF
.IFDEF LPC2292
.EQU Top_Stack, 0x40003FFC
.ENDIF
.IFDEF LPC2294
.EQU Top_Stack, 0x40003FFC
.ENDIF
.ENDIF
#-----------------------------------------------------------------)
#different mode stack size define
#(-----------------------------------------------------------------
.EQU UND_Stack_Size, 0x00000004
.EQU SVC_Stack_Size, 0x00000004
.EQU ABT_Stack_Size, 0x00000004
.EQU FIQ_Stack_Size, 0x00000004
.EQU IRQ_Stack_Size, 0x00000100 /* 256 bytes */
.EQU USR_Stack_Size, 0x00000400 /* 1K bytes */
#-----------------------------------------------------------------)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -