?? call_int.s
字號:
#------------------------------------------------------------------------------
#- 入口函數(shù): void user_irq(void)
#- 出口函數(shù): void user_handle(void)
#------------------------------------------------------------------------------
# .INCLUDE "include.x"
.macro IRQHandle user_handle:
stmdb sp!, {r0-r11, ip, lr} /* 保存r0-r11, ip, lr */
ldr r0, =\user_handle
mov lr, pc
bx r0 /* 調(diào)用user中斷處理程序 */
ldmia sp!, {r0-r11, ip, lr} /* 恢復(fù)r0, ip, lr */
subs pc, r14, #4 /* 中斷返回 */
.endm
.extern TSInt
.global user_irq1
user_irq1: IRQHandle TSInt
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -