Removed dead code.
authoretisserant
Thu, 12 Apr 2007 17:10:57 +0200
changeset 156 515d11cb496e
parent 155 746b49869cbc
child 157 8b45ff4202c3
Removed dead code.
examples/Makefile.in
examples/TestMasterSlave/TestMasterSlave.c
--- 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)
--- 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 <signal.h>
 #endif
 
-#include <applicfg.h>
-#include <can_driver.h>
-#include <timers_driver.h>
+#include "canfestival.h"
+//#include <can_driver.h>
+//#include <timers_driver.h>
 
 #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);