#include"m9402.h"

int infrared()			/*赤外線センサ監視用関数*/
{
    int a;
    extern unsigned char mmi_chase;


    a = ((inportb(PBDR2))&0xff);
  if(a != 0)
    {
     a= a|0x01;
     mmi_chase=1;
    }

    sys8(1,1,a);
}


開発規約に戻る