📄 post_initvariant.s
字号:
IMPORT buttonStatus
IMPORT ledStatusBuffer
IMPORT ledShareVariant
IMPORT ledShareInterval
IMPORT pwmEmulatorStatus
IMPORT interruptVectorListBase
IMPORT handle_osTimer3
IMPORT handle_osTimer2
IMPORT handle_osTimer1
IMPORT handle_osTimer0
IMPORT handle_rtcTrim
IMPORT int_ICMR
IMPORT initInt_ICMR
EXPORT post_initVariant
AREA post_initVariant ,CODE ,READONLY
ldr r11,=ledStatusBuffer
mov r4,#0x0
str r4,[r11]
ldr r11,=ledShareVariant
ldr r4,=ledShareInterval
str r4,[r11]
ldr r11,=buttonStatus
mov r4,#0x0
str r4,[r11]
ldr r11,=pwmEmulatorStatus
mov r4,#0x0
str r4,[r11]
;/////////////
ldr r11,=int_ICMR
ldr r4,=initInt_ICMR
str r4,[r11]
ldr r11,=interruptVectorListBase
mov r4,#0x0
mov r5,#0x8
InitVectorListLoop
str r4,[r11]
add r11,r11,#0x4
sub r5,r5,#0x1
cmp r5,#0x0
bne InitVectorListLoop
mov r4,#0x0
str r4,[r11] ;handle0
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle1
add r11,r11,#0x4
str r4,[r11] ;handle2
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle3
;///////////////
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle4
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle5
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle6
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle7(reserved)
;////////////
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle8
add r11,r11,#0x4
str r4,[r11] ;handle9
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle10
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle11
;///////////////
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle12
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle13
add r11,r11,#0x4
str r4,[r11] ;handle14
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle15
;/////////////
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle16
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle17
add r11,r11,#0x4
ldr r4,=handle_osTimer0
str r4,[r11] ;handle18
add r11,r11,#0x4
ldr r4,=handle_osTimer1
str r4,[r11] ;handle19
;/////////////
add r11,r11,#0x4
ldr r4,=handle_osTimer2
str r4,[r11] ;handle20
add r11,r11,#0x4
mov r4,#0x0
ldr r4,=handle_osTimer3
str r4,[r11] ;handle21
add r11,r11,#0x4
ldr r4,=handle_rtcTrim
str r4,[r11] ;handle22
add r11,r11,#0x4
mov r4,#0x0
str r4,[r11] ;handle23
;////////////
mov pc,r14
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -