📄 int.h
字号:
interrupt void IntPortJ(void)
{
PIFJ=0B10000000;
OSTaskResume(13);
OSTaskResume(15);
}
interrupt void IntPAOVF_CorCCDGetInfo()
{
PAFLG_PAOVF=1;
if(ExtLines<48)
{
LibDelay(11);
for(ExtPels=0;ExtPels<=34;ExtPels++)
{
while(!ATD1STAT1_CCF0);
ExtPelsVal[ExtLines][ExtPels]=ATD1DR0L;
}
PORTB_BIT1=~PORTB_BIT1;
}
PACN32=0xffff-ExtPACN32Dly[ExtPACN32DlyCnt];
ExtPACN32DlyCnt++;
OSSemPost(SemCCDInfoPro);
ExtLines=ExtLines+1;
}
interrupt void IntPTH()
{
PIFH_PIFH1=1;
PACN32=65511;
ExtLines=0;
ExtPACN32DlyCnt=0;
PORTB_BIT0=~PORTB_BIT0;
asm{
ldaa $30 //save ppage to stack
psha
}
OSIntEnter();
OS_SAVE_SP();
OSTimeTick();
OSIntExit(); // exit interrupt and task switch
asm{
pula
staa $30 //restore ppage from stack
nop
rti
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -