示例#1
0
void initVariables(void){
	AEPtr=AEBuffer;		// reset AE buffer pointer and AE counter
	AECounter=0;
	NOTACK	=	1;		// start by not acknowledging, so that !req can come in
	lastXmitTime=TH0;	

	LedRedOff();			// we're not connected now
}
示例#2
0
void LedTest(void)
{
        while(1)
        {
                LedRedOn();
                DelayNmS(200);
                LedRedOff();
                DelayNmS(200);
                LedBlueOn();
                DelayNmS(200);
                LedBlueOff();
                DelayNmS(200);
        }
}
void DisplayOutTime(void)
{
        unsigned char i = 0;

        for(i=0;i<3;i++)
        {
                BellOn();
                LedRedOn();
                DelayNmS(200);
                BellOff();
                LedRedOff();
                DelayNmS(200);
        }
}
void DisplayFail(void)
{
        unsigned char i = 0;

        for(i=0;i<2;i++)
        {
                BellOn();
                LedRedOn();
                DelayNmS(200);
                BellOff();
                LedRedOff();
                DelayNmS(200);
        }
}
示例#5
0
void LedInit(void)
{
        LedRedOff();
        LedBlueOff();
}