📄 isr.asm
字号:
//====================================================================================
//函数:FIQ()
//语法:viod FIQ(void)
//描述:FIQ中断服务函数
//参数:无
//返回:无
//====================================================================================
.PUBLIC _BREAK
.PUBLIC _FIQ
.PUBLIC _IRQ0
.PUBLIC _IRQ1
.PUBLIC _IRQ2
.PUBLIC _IRQ3
.PUBLIC _IRQ4
.PUBLIC _IRQ5
.PUBLIC _IRQ6
.PUBLIC _IRQ7
.INCLUDE hardware.inc // include hardware information
.INCLUDE dvr.inc
.DEFINE P_WatchDog_Clear 0x7012
.TEXT
/////////////////////////////////////////////////////////////////////////////////////////
// Function: Fast Interrupt Service routine Area
////////////////////////////////////////////////////////////////////////////////////////
_FIQ:
push r1,r4 to [sp]
r1=0x0001;
[P_WatchDog_Clear]=r1;
call F_FIQ_Service_SACM_DVR
r1 = C_FIQ_TMA
[P_INT_Clear] = r1
pop r1,r4 from [sp]
reti
/////////////////////////////////////////////////////////////////////////////////////////
// Function: Interrupt Service routine Area
// Service for IRQ1 - IRQ7
// User's IRQ must hook on here
/////////////////////////////////////////////////////////////////////////////////////////
_BREAK:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ0:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ1:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ2:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ3:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ4:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ5:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ6:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
_IRQ7:
push r1,r4 to [sp]
pop r1,r4 from [sp]
reti
// ---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -