examples/TestMasterSlave/Master.c
changeset 344 da65cf699839
parent 343 118c1cabd0b0
child 349 1e6dd4ef46b9
equal deleted inserted replaced
343:118c1cabd0b0 344:da65cf699839
   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);
   320 #endif
   322 #endif
   321 }
   323 }
   322 
   324 
   323 void TestMaster_operational()
   325 void TestMaster_operational()
   324 {
   326 {
   457 }
   459 }
   458 
   460 
   459 void TestMaster_post_SlaveBootup(UNS8 nodeid)
   461 void TestMaster_post_SlaveBootup(UNS8 nodeid)
   460 {
   462 {
   461 	eprintf("TestMaster_post_SlaveBootup %x\n", nodeid);
   463 	eprintf("TestMaster_post_SlaveBootup %x\n", nodeid);
       
   464 #ifdef CO_ENABLE_LSS
   462 	ConfigureSlaveNode(&TestMaster_Data, nodeid);
   465 	ConfigureSlaveNode(&TestMaster_Data, nodeid);
   463 }
   466 #endif
   464 
   467 }
       
   468