# HG changeset patch # User etisserant # Date 1176390657 -7200 # Node ID 515d11cb496eb7563e8c707ecdc8bac2e7716ab9 # Parent 746b49869cbc921ba3fce102eaeba6021c6d2dea Removed dead code. diff -r 746b49869cbc -r 515d11cb496e examples/Makefile.in --- a/examples/Makefile.in Thu Apr 12 16:36:31 2007 +0200 +++ b/examples/Makefile.in Thu Apr 12 17:10:57 2007 +0200 @@ -25,8 +25,6 @@ all: ifeq ($(TARGET),hc12) - $(MAKE) -C AppliMaster_HCS12 $@ - $(MAKE) -C AppliSlave_HCS12 $@ $(MAKE) -C gene_SYNC_HCS12 $@ endif ifeq ($(TARGET),unix) @@ -35,8 +33,6 @@ clean: ifeq ($(TARGET),hc12) - $(MAKE) -C AppliMaster_HCS12 $@ - $(MAKE) -C AppliSlave_HCS12 $@ $(MAKE) -C gene_SYNC_HCS12 $@ endif ifeq ($(TARGET),unix) @@ -45,8 +41,6 @@ mrproper: clean ifeq ($(TARGET),hc12) - $(MAKE) -C AppliMaster_HCS12 $@ - $(MAKE) -C AppliSlave_HCS12 $@ $(MAKE) -C gene_SYNC_HCS12 $@ endif ifeq ($(TARGET),unix) 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);