NAR-5620 Series
User
’
s
Manual
57
indata=inport(0x2f);
check2=indata & 0x80;
//if ((check1==8) && (check2==0)) display_line(50,10, "PASS", 15,1);
if ((check1==0x80) && (check2==0x00)) display_line(50,10, "PASS", 15,1);
else {display_line(50,10, "FAIL", 12,1);fail_beep();}
exit_GPIO();
}
int main(void)
{
int x,outdata,indata,check;
swh_cur(0);
display_menu();
display_line(1 , 23, "
Press any key to start....", 11,1);
getch();
display_line(1 , 23, "
", 14,1);
GPIO_test();
display_line(1 , 24, "
Press any key to exit .....", 14,1);
getch();
swh_cur(1);
return 0;
}