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