Beispiel #1
0
	bool initialize()
	{
		if (false == checkRuntimeConfig())
			return false;

		Timing::initialize();
		return (OpenGL::initialize() && initScheduling() && initPipeline());
	}
Beispiel #2
0
int main(){


 TOSH_SET_PIN_DIRECTIONS();
   initScheduling();  
   thread_init();

  currentuse = 0; 
 
  printString("Start!\n");

  sei();



   mystrncpy(networkid, "sn03\0", 5);
   nodeid = 3;   
   mystrncpy(filenameid, "nodeA\0", 6); 
  


  


   TimerM_StdControl_init();

  



   AMStandard_Control_init();
   AMStandard_Control_start();
   
   SocketInit();
 




   currentMsg = 0;
   packetReadingNumber = 0;
   readingNumber = 0;
      
      
   nextindex = 0;
   
   
  
  CURRENT_NODE_ID = 17;

 
//add end
 //line 39
//Timer_start(2,REPEAT ,15000*MILLISECOND);

//TimerM_Timer_start(15, TIMER_REPEAT, 5000*MILLISECOND);

 //line 40
//Timer_start(1,REPEAT,1*MINUTE);


  initRadioHandle();

 
  CC2420ControlM_CC2420Control_TuneChannel(15);
  
  CC2420ControlM_CC2420Control_TunePower( 31) ; 


  __nesc_enable_interrupt();

  while (1) {
      runNextTask();
    }

	return 0;
}