examples/gene_SYNC_HCS12/appli.c
changeset 149 fe50ada8020b
parent 80 37354e408645
child 172 0248c2b148bb
--- a/examples/gene_SYNC_HCS12/appli.c	Thu Apr 05 10:06:11 2007 +0200
+++ b/examples/gene_SYNC_HCS12/appli.c	Fri Apr 06 16:49:28 2007 +0200
@@ -285,14 +285,6 @@
 }
 
 //------------------------------------------------------------------------------
-UNS8 gene_SYNC_canSend(Message *m)
-{
-  // HCS12 driver function to send the CAN msg
-  canMsgTransmit(CAN0, *m);
-  return 0;
-}
-
-//------------------------------------------------------------------------------
 void gene_SYNC_initialisation()
 {  
   MSG_WAR (0x3F00, "Entering in INIT ", 0); 
@@ -395,16 +387,6 @@
   IO_PORTS_8(PORTB) |=   0x0E; // leds 1, 2, 3, 4   : OFF
 }
 
-//------------------------------------------------------------------------------
-void gene_SYNC_post_sync()
-{
-}
-
-//------------------------------------------------------------------------------
-void gene_SYNC_post_TPDO()
-{
-}
-
 // End functions which are part of Canfestival
 //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 
@@ -419,6 +401,13 @@
 
   MSG_WAR(0x3F34, "Entering in the main ", 0);
   //----------------------------- INITIALISATION --------------------------------
+  gene_SYNC_Data.heartbeatError = gene_SYNC_heartbeatError;
+  gene_SYNC_Data.SDOtimeoutError = gene_SYNC_SDOtimeoutError;
+  gene_SYNC_Data.initialisation = gene_SYNC_initialisation;
+  gene_SYNC_Data.preOperational = gene_SYNC_preOperational;
+  gene_SYNC_Data.preOperational = gene_SYNC_operational;
+  gene_SYNC_Data.stopped = gene_SYNC_stopped;
+
   
   /* Put the node in Initialisation mode */
   MSG_WAR(0x3F35, "Will entering in INIT ", 0);