examples/TestMasterSlaveLSS/SlaveB.c
changeset 384 83793fc7ce48
parent 381 854c43cdc24a
child 517 003679edc437
equal deleted inserted replaced
383:7d8afedb8769 384:83793fc7ce48
    22 
    22 
    23 #include "SlaveB.h"
    23 #include "SlaveB.h"
    24 #include "Master.h"
    24 #include "Master.h"
    25 #include "TestMasterSlaveLSS.h"
    25 #include "TestMasterSlaveLSS.h"
    26 
    26 
    27 extern s_BOARD SlaveBoardB;
       
    28 /*****************************************************************************/
    27 /*****************************************************************************/
    29 void TestSlaveB_heartbeatError(CO_Data* d, UNS8 heartbeatID)
    28 void TestSlaveB_heartbeatError(CO_Data* d, UNS8 heartbeatID)
    30 {
    29 {
    31 	eprintf("TestSlaveB_heartbeatError %d\n", heartbeatID);
    30 	eprintf("TestSlaveB_heartbeatError %d\n", heartbeatID);
    32 }
    31 }
    84 void TestSlaveB_StoreConfiguration(CO_Data* d, UNS8 *error, UNS8 *spec_error)
    83 void TestSlaveB_StoreConfiguration(CO_Data* d, UNS8 *error, UNS8 *spec_error)
    85 {
    84 {
    86 	printf("TestSlaveB_StoreConfiguration\n");
    85 	printf("TestSlaveB_StoreConfiguration\n");
    87 }
    86 }
    88 
    87 
    89 void TestSlaveB_ChangeBaudRate(CO_Data* d, char *baudrate)
       
    90 {
       
    91 	eprintf("TestSlave2_ChangeBaudRate from %s to %s\n", SlaveBoardB.baudrate, baudrate);
       
    92 	SlaveBoardB.baudrate=baudrate;
       
    93 	/* something to do with the new baudrate */
       
    94 }