]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
Removed dead code.
authoretisserant <etisserant>
Thu, 12 Apr 2007 15:10:27 +0000 (15:10 +0000)
committeretisserant <etisserant>
Thu, 12 Apr 2007 15:10:27 +0000 (15:10 +0000)
examples/Makefile.in
examples/TestMasterSlave/TestMasterSlave.c

index ebd571d3e78bc5e8f490bcd769b208832ffac853..b802137d5a2b044d2769cac57a32c93cad7d73b5 100644 (file)
@@ -25,8 +25,6 @@ TARGET = SUB_TARGET
 
 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 @@ endif
 
 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 @@ endif
 
 mrproper: clean
 ifeq ($(TARGET),hc12)
-       $(MAKE) -C AppliMaster_HCS12 $@
-       $(MAKE) -C AppliSlave_HCS12 $@
        $(MAKE) -C gene_SYNC_HCS12 $@
 endif
 ifeq ($(TARGET),unix)
index c95f575104339e89a931a33762a3f1d43f143e36..98690577b425b71df4559c48c90c813b38bc2021 100644 (file)
@@ -36,42 +36,14 @@ void pause(void)
 #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);