?? 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 + -