Esempio n. 1
0
//启动一次识别
unsigned char RunASR(void)
{
	unsigned char i=0;
	unsigned char j=0;
	unsigned char asrflag=0;
	for (i=0; i<5; i++)	//
	{
		LD_Init_ASR();
		OSTimeDly(1);	
		if (LD_AsrAddFixed()==0)
		{
			LD_Reset();			//
			OSTimeDly(1);		//
			continue;
		}
		j= LD_AsrRun();
		if (j == 0)
		{
			LD_Reset();			//
			OSTimeDly(1);		//
			continue;
		}
		asrflag=1;
		break;					//
	}	
	return asrflag;
}
Esempio n. 2
0
void LD_AsrStart()		
{
	LD_Init_ASR();
}