日期:2014-05-20 浏览次数:20905 次
char* am_BINDFULL_GN(void){
	AM_RESULT  am_result=0;
	int count=0;
	int cycle_number=0;
	if(result==0){
	    TCN_OSL_PRINTF("am_bind_replier()\n");
	    for(count=0;count<250;count++)
	    {
	    	if(am_result!=AM_OK){
	    		break;
	    	}
	    }
        TCN_OSL_PRINTF("ERROR: am_bind_replier %d\n ,%u", count,am_result);
	    if (am_result != AM_OK)
	    {
	        TCN_OSL_PRINTF("ERROR: am_bind_replier()=%u\n", am_result);
	    } /* if (am_result != AM_OK) */
		if(am_result != AM_OK)
		{
			TCN_OSL_PRINTF("ERROR: md_init: as_result=%u\n", am_result);
			TCN_DEMO_ON_ERROR(am_result);
		}
		result = am_result;
	}
	if (0 == result)
	{
		result = md_init_station_function_dir();
	}
	if(0==result)
	// 循环
		for(cycle_number=0;cycle_number<CYCLE_NUM;cycle_number++)
	{
		result = md_cycle();
	}
	//after test
	for(count=0;count<MD_SIZE;count++){
	     md_caller_text_send[count];
	}
	        md_caller_state  = MD_STATE_WAIT_FOR_REPLIER;
	       for(count=0;count<250;count++)
	     	    {
	     	    	 am_unbind_replier(count);
	     	    }
	return "";
}