examples/TestMasterSlave/Master.c
changeset 349 1e6dd4ef46b9
parent 344 da65cf699839
child 362 1134fc19aa74
equal deleted inserted replaced
348:c50feb2bb590 349:1e6dd4ef46b9
   315 	eprintf("TestMaster_preOperational\n");
   315 	eprintf("TestMaster_preOperational\n");
   316 #ifdef CO_ENABLE_LSS
   316 #ifdef CO_ENABLE_LSS
   317 	/* Ask slave node to go in stop mode */
   317 	/* Ask slave node to go in stop mode */
   318 	masterSendNMTstateChange (&TestMaster_Data, 0, NMT_Stop_Node);
   318 	masterSendNMTstateChange (&TestMaster_Data, 0, NMT_Stop_Node);
   319 	ConfigureLSSNode(&TestMaster_Data);
   319 	ConfigureLSSNode(&TestMaster_Data);
   320 #else
       
   321 	ConfigureSlaveNode(&TestMaster_Data, 0x02);
       
   322 #endif
   320 #endif
   323 }
   321 }
   324 
   322 
   325 void TestMaster_operational()
   323 void TestMaster_operational()
   326 {
   324 {
   459 }
   457 }
   460 
   458 
   461 void TestMaster_post_SlaveBootup(UNS8 nodeid)
   459 void TestMaster_post_SlaveBootup(UNS8 nodeid)
   462 {
   460 {
   463 	eprintf("TestMaster_post_SlaveBootup %x\n", nodeid);
   461 	eprintf("TestMaster_post_SlaveBootup %x\n", nodeid);
   464 #ifdef CO_ENABLE_LSS
   462 
   465 	ConfigureSlaveNode(&TestMaster_Data, nodeid);
   463 	ConfigureSlaveNode(&TestMaster_Data, nodeid);
   466 #endif
   464 
   467 }
   465 }
   468 
   466