Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
fca84daa
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fca84daa
编写于
1月 06, 2015
作者:
G
Grissiom
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lpc43xx: fix the startup code for GCC
上级
833339e1
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
139 addition
and
130 deletion
+139
-130
bsp/lpc43xx/Libraries/Device/NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s
...Device/NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s
+46
-20
bsp/lpc43xx/Libraries/Device/NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s
...ice/NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s
+93
-110
未找到文件。
bsp/lpc43xx/Libraries/Device/NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s
浏览文件 @
fca84daa
...
...
@@ -109,30 +109,56 @@ __interrupt_vector:
.
type
Reset_Handler
,
%
function
Reset_Handler
:
.
fnstart
.
ifdef
RAM_MODE
/*
Clear
.
bss
section
(
Zero
init
)
*/
mov
R0
,
#
0
ldr
R1
,
=
__bss_start__
ldr
R2
,
=
__bss_end__
cmp
R1
,
R2
beq
BSSIsEmpty
LoopZI
:
cmp
R1
,
R2
bhs
BSSIsEmpty
str
R0
,
[
R1
]
add
R1
,
#
4
blo
LoopZI
BSSIsEmpty
:
ldr
R0
,
=
SystemInit
blx
R0
ldr
R0
,=
main
bx
R0
.
else
/*
Single
section
scheme
.
*
*
The
ranges
of
copy
from
/
to
are
specified
by
following
symbols
*
_sidata
:
LMA
of
start
of
the
section
to
copy
from
.
Usually
end
of
text
*
_sdata
:
VMA
of
start
of
the
section
to
copy
to
*
_edata
:
VMA
of
end
of
the
section
to
copy
to
*
*
All
addresses
must
be
aligned
to
4
bytes
boundary
.
*/
ldr
r1
,
=
_sidata
ldr
r2
,
=
_sdata
ldr
r3
,
=
_edata
subs
r3
,
r2
ble
.
L_loop1_done
.
L_loop1
:
subs
r3
,
#
4
ldr
r0
,
[
r1
,
r3
]
str
r0
,
[
r2
,
r3
]
bgt
.
L_loop1
.
L_loop1_done
:
/*
Single
BSS
section
scheme
.
*
*
The
BSS
section
is
specified
by
following
symbols
*
__bss_start
:
start
of
the
BSS
section
.
*
__bss_end
:
end
of
the
BSS
section
.
*
*
Both
addresses
must
be
aligned
to
4
bytes
boundary
.
*/
ldr
r1
,
=
__bss_start
ldr
r2
,
=
__bss_end
movs
r0
,
0
subs
r2
,
r1
ble
.
L_loop3_done
.
L_loop3
:
subs
r2
,
#
4
str
r0
,
[
r1
,
r2
]
bgt
.
L_loop3
.
L_loop3_done
:
ldr
R0
,
=
SystemInit
blx
R0
ldr
R0
,=
main
bx
R0
.
endif
.
pool
.
cantunwind
...
...
bsp/lpc43xx/Libraries/Device/NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s
浏览文件 @
fca84daa
...
...
@@ -43,59 +43,38 @@ __interrupt_vector:
.
long
SysTick_Handler
/*
SysTick
Handler
*/
/*
External
Interrupts
*/
.
long
DAC_IRQHandler
/*
16
D
/
A
Converter
*/
.
long
RTC_IRQHandler
/*
16
D
/
A
Converter
*/
.
long
M4CORE_IRQHandler
/*
17
M0
Core
*/
.
long
DMA_IRQHandler
/*
18
General
Purpose
DMA
*/
.
long
EZH_IRQHandler
/*
19
EZH
/
EDM
*/
.
long
FLASH
_EEPROM_IRQHandler
/*
20
Reserved
for
Typhoon
*/
.
long
0
/*
19
EZH
/
EDM
*/
.
long
FLASH
EEPROMAT_IRQHandler
/*
20
Reserved
for
Typhoon
*/
.
long
ETH_IRQHandler
/*
21
Ethernet
*/
.
long
SDIO_IRQHandler
/*
22
SD
/
MMC
*/
.
long
LCD_IRQHandler
/*
23
LCD
*/
.
long
USB0_IRQHandler
/*
24
USB0
*/
.
long
USB1_IRQHandler
/*
25
USB1
*/
.
long
SCT_IRQHandler
/*
26
State
Configurable
Timer
*/
.
long
RIT_
IRQHandler
/*
27
Repetitive
Interrupt
Timer
*/
.
long
RIT_
OR_WWDT_IRQHandler
/*
27
Repetitive
Interrupt
Timer
*/
.
long
TIMER0_IRQHandler
/*
28
Timer0
*/
.
long
TIMER1_IRQHandler
/*
29
Timer1
*/
.
long
TIMER2_IRQHandler
/*
30
Timer2
*/
.
long
GINT1_IRQHandler
/*
29
Timer1
*/
.
long
PIN_INT4_IRQHandler
/*
30
Timer2
*/
.
long
TIMER3_IRQHandler
/*
31
Timer3
*/
.
long
MCPWM_IRQHandler
/*
32
Motor
Control
PWM
*/
.
long
ADC0_IRQHandler
/*
33
A
/
D
Converter
0
*/
.
long
I2C0_
IRQHandler
/*
34
I2C0
*/
.
long
I2C1_IRQHandler
/*
35
I2C1
*/
.
long
SPI_
IRQHandler
/*
36
SPI
*/
.
long
I2C0_
OR_I2C1_IRQHandler
/*
34
I2C0
*/
.
long
SGPIO_IRQHandler
/*
35
I2C1
*/
.
long
SPI_
OR_DAC_IRQHandler
/*
36
SPI
*/
.
long
ADC1_IRQHandler
/*
37
A
/
D
Converter
1
*/
.
long
SSP0_
IRQHandler
/*
38
SSP0
*/
.
long
SSP1_IRQHandler
/*
39
SSP1
*/
.
long
SSP0_
OR_SSP1_IRQHandler
/*
38
SSP0
*/
.
long
EVENTROUTER_IRQHandler
/*
39
SSP1
*/
.
long
UART0_IRQHandler
/*
40
UART0
*/
.
long
UART1_IRQHandler
/*
41
UART1
*/
.
long
UART2_
IRQHandler
/*
42
UART2
*/
.
long
UART2_
OR_C_CAN1_IRQHandler
/*
42
UART2
*/
.
long
UART3_IRQHandler
/*
43
UART3
*/
.
long
I2S0_IRQHandler
/*
44
I2S0
*/
.
long
I2S1_IRQHandler
/*
45
I2S1
*/
.
long
SPIFI_IRQHandler
/*
46
SPI
Flash
Interface
*/
.
long
SGPIO_IRQHandler
/*
47
SGPIO
*/
.
long
GPIO0_IRQHandler
/*
48
GPIO0
*/
.
long
GPIO1_IRQHandler
/*
49
GPIO1
*/
.
long
GPIO2_IRQHandler
/*
50
GPIO2
*/
.
long
GPIO3_IRQHandler
/*
51
GPIO3
*/
.
long
GPIO4_IRQHandler
/*
52
GPIO4
*/
.
long
GPIO5_IRQHandler
/*
53
GPIO5
*/
.
long
GPIO6_IRQHandler
/*
54
GPIO6
*/
.
long
GPIO7_IRQHandler
/*
55
GPIO7
*/
.
long
GINT0_IRQHandler
/*
56
GINT0
*/
.
long
GINT1_IRQHandler
/*
57
GINT1
*/
.
long
EVRT_IRQHandler
/*
58
Event
Router
*/
.
long
CAN1_IRQHandler
/*
59
C_CAN1
*/
.
long
0
/*
60
Reserved
*/
.
long
VADC_IRQHandler
/*
61
VADC
*/
.
long
ATIMER_IRQHandler
/*
62
ATIMER
*/
.
long
RTC_IRQHandler
/*
63
RTC
*/
.
long
0
/*
64
Reserved
*/
.
long
WDT_IRQHandler
/*
65
WDT
*/
.
long
M0s_IRQHandler
/*
66
M0s
*/
.
long
CAN0_IRQHandler
/*
67
C_CAN0
*/
.
long
QEI_IRQHandler
/*
68
QEI
*/
.
long
I2S0_OR_I2S1_OR_QEI_IRQHandler
/*
44
I2S0
*/
.
long
C_CAN0_IRQHandler
/*
45
I2S1
*/
.
long
0
/*
46
SPI
Flash
Interface
*/
.
long
0
/*
47
SGPIO
*/
.
size
__interrupt_vector
,
.
-
__interrupt_vector
...
...
@@ -109,30 +88,56 @@ __interrupt_vector:
.
type
Reset_Handler
,
%
function
Reset_Handler
:
.
fnstart
.
ifdef
RAM_MODE
/*
Clear
.
bss
section
(
Zero
init
)
*/
mov
R0
,
#
0
ldr
R1
,
=
__bss_start__
ldr
R2
,
=
__bss_end__
cmp
R1
,
R2
beq
BSSIsEmpty
LoopZI
:
cmp
R1
,
R2
bhs
BSSIsEmpty
str
R0
,
[
R1
]
add
R1
,
#
4
blo
LoopZI
BSSIsEmpty
:
ldr
R0
,
=
SystemInit
blx
R0
ldr
R0
,=
main
bx
R0
.
else
/*
Single
section
scheme
.
*
*
The
ranges
of
copy
from
/
to
are
specified
by
following
symbols
*
_sidata
:
LMA
of
start
of
the
section
to
copy
from
.
Usually
end
of
text
*
_sdata
:
VMA
of
start
of
the
section
to
copy
to
*
_edata
:
VMA
of
end
of
the
section
to
copy
to
*
*
All
addresses
must
be
aligned
to
4
bytes
boundary
.
*/
ldr
r1
,
=
_sidata
ldr
r2
,
=
_sdata
ldr
r3
,
=
_edata
subs
r3
,
r2
ble
.
L_loop1_done
.
L_loop1
:
subs
r3
,
#
4
ldr
r0
,
[
r1
,
r3
]
str
r0
,
[
r2
,
r3
]
bgt
.
L_loop1
.
L_loop1_done
:
/*
Single
BSS
section
scheme
.
*
*
The
BSS
section
is
specified
by
following
symbols
*
__bss_start
:
start
of
the
BSS
section
.
*
__bss_end
:
end
of
the
BSS
section
.
*
*
Both
addresses
must
be
aligned
to
4
bytes
boundary
.
*/
ldr
r1
,
=
__bss_start
ldr
r2
,
=
__bss_end
movs
r0
,
0
subs
r2
,
r1
ble
.
L_loop3_done
.
L_loop3
:
subs
r2
,
#
4
str
r0
,
[
r1
,
r2
]
bgt
.
L_loop3
.
L_loop3_done
:
ldr
R0
,
=
SystemInit
blx
R0
ldr
R0
,=
main
bx
R0
.
endif
.
pool
.
cantunwind
...
...
@@ -211,56 +216,34 @@ Default_Handler:
.
set
\
handler
,
Default_Handler
.
endm
IRQ
DA
C_IRQHandler
IRQ
M
0
CORE_IRQHandler
IRQ
RT
C_IRQHandler
IRQ
M
4
CORE_IRQHandler
IRQ
DMA_IRQHandler
IRQ
EZH_IRQHandler
IRQ
FLASH_EEPROM_IRQHandler
IRQ
FLASHEEPROMAT_IRQHandler
IRQ
ETH_IRQHandler
IRQ
SDIO_IRQHandler
IRQ
LCD_IRQHandler
IRQ
USB0_IRQHandler
IRQ
USB1_IRQHandler
IRQ
SCT_IRQHandler
IRQ
RIT_IRQHandler
IRQ
RIT_
OR_WWDT_
IRQHandler
IRQ
TIMER0_IRQHandler
IRQ
TIMER
1_IRQHandler
IRQ
TIMER2
_IRQHandler
IRQ
GINT
1_IRQHandler
IRQ
PIN_INT4
_IRQHandler
IRQ
TIMER3_IRQHandler
IRQ
MCPWM_IRQHandler
IRQ
ADC0_IRQHandler
IRQ
I2C0_IRQHandler
IRQ
I2C1
_IRQHandler
IRQ
SPI_IRQHandler
IRQ
I2C0_
OR_I2C1_
IRQHandler
IRQ
SGPIO
_IRQHandler
IRQ
SPI_
OR_DAC_
IRQHandler
IRQ
ADC1_IRQHandler
IRQ
SSP0_IRQHandler
IRQ
SSP1
_IRQHandler
IRQ
SSP0_
OR_SSP1_
IRQHandler
IRQ
EVENTROUTER
_IRQHandler
IRQ
UART0_IRQHandler
IRQ
UART1_IRQHandler
IRQ
UART2_IRQHandler
IRQ
UART2_
OR_C_CAN1_
IRQHandler
IRQ
UART3_IRQHandler
IRQ
I2S0_IRQHandler
IRQ
I2S1_IRQHandler
IRQ
SPIFI_IRQHandler
IRQ
SGPIO_IRQHandler
IRQ
GPIO0_IRQHandler
IRQ
GPIO1_IRQHandler
IRQ
GPIO2_IRQHandler
IRQ
GPIO3_IRQHandler
IRQ
GPIO4_IRQHandler
IRQ
GPIO5_IRQHandler
IRQ
GPIO6_IRQHandler
IRQ
GPIO7_IRQHandler
IRQ
GINT0_IRQHandler
IRQ
GINT1_IRQHandler
IRQ
EVRT_IRQHandler
IRQ
CAN1_IRQHandler
IRQ
VADC_IRQHandler
IRQ
ATIMER_IRQHandler
IRQ
RTC_IRQHandler
IRQ
WDT_IRQHandler
IRQ
M0s_IRQHandler
IRQ
CAN0_IRQHandler
IRQ
QEI_IRQHandler
IRQ
I2S0_OR_I2S1_OR_QEI_IRQHandler
IRQ
C_CAN0_IRQHandler
.
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录