diff -r 746b49869cbc -r 515d11cb496e examples/TestMasterSlave/TestMasterSlave.c --- a/examples/TestMasterSlave/TestMasterSlave.c Thu Apr 12 16:36:31 2007 +0200 +++ b/examples/TestMasterSlave/TestMasterSlave.c Thu Apr 12 17:10:57 2007 +0200 @@ -36,42 +36,14 @@ #include #endif -#include -#include -#include +#include "canfestival.h" +//#include +//#include #include "Master.h" #include "Slave.h" #include "TestMasterSlave.h" -#define MyCase(fc) case fc: eprintf(#fc);break; -void print_message(Message *m) -{ - int i; - switch(m->cob_id.w >> 7) - { - MyCase(SYNC) - MyCase(TIME_STAMP) - MyCase(PDO1tx) - MyCase(PDO1rx) - MyCase(PDO2tx) - MyCase(PDO2rx) - MyCase(PDO3tx) - MyCase(PDO3rx) - MyCase(PDO4tx) - MyCase(PDO4rx) - MyCase(SDOtx) - MyCase(SDOrx) - MyCase(NODE_GUARD) - MyCase(NMT) - } - eprintf(" rtr:%d", m->rtr); - eprintf(" len:%d", m->len); - for (i = 0 ; i < m->len ; i++) - eprintf(" %02x", m->data[i]); - eprintf("\n"); -} - UNS32 OnMasterMap1Update(CO_Data* d, const indextable * unsused_indextable, UNS8 unsused_bSubindex) { eprintf("OnSlaveMap1Update:%d\n", SlaveMap1);