equal
deleted
inserted
replaced
36 #endif |
36 #endif |
37 |
37 |
38 #include "canfestival.h" |
38 #include "canfestival.h" |
39 #include "TestMasterMicroMod.h" |
39 #include "TestMasterMicroMod.h" |
40 #include "TestMaster.h" |
40 #include "TestMaster.h" |
41 UNS8 slavenodeid = 0x40; |
41 unsigned int slavenodeid = 0x40; |
42 |
42 |
43 |
43 |
44 /*****************************************************************************/ |
44 /*****************************************************************************/ |
45 void TestMaster_heartbeatError(CO_Data* d, UNS8 heartbeatID) |
45 void TestMaster_heartbeatError(CO_Data* d, UNS8 heartbeatID) |
46 { |
46 { |
54 ********************************************************/ |
54 ********************************************************/ |
55 void TestMaster_initialisation(CO_Data* d) |
55 void TestMaster_initialisation(CO_Data* d) |
56 { |
56 { |
57 UNS32 PDO1_COBID = 0x0180 + slavenodeid; |
57 UNS32 PDO1_COBID = 0x0180 + slavenodeid; |
58 UNS32 PDO2_COBID = 0x0200 + slavenodeid; |
58 UNS32 PDO2_COBID = 0x0200 + slavenodeid; |
59 UNS8 size = sizeof(UNS32); |
59 UNS32 size = sizeof(UNS32); |
60 |
60 |
61 eprintf("TestMaster_initialisation\n"); |
61 eprintf("TestMaster_initialisation\n"); |
62 |
62 |
63 /***************************************** |
63 /***************************************** |
64 * Define RPDOs to match slave ID=0x40 TPDOs* |
64 * Define RPDOs to match slave ID=0x40 TPDOs* |