1.29 Datatypes for timers
authorpeter
Mon, 17 Nov 2008 21:11:59 +0100
changeset 524 b94067330319
parent 523 8db762eb756b
child 525 9b81decd4662
1.29 Datatypes for timers
src/pdo.c
--- a/src/pdo.c	Fri Nov 14 15:50:08 2008 +0100
+++ b/src/pdo.c	Mon Nov 17 21:11:59 2008 +0100
@@ -46,12 +46,10 @@
 ** @return
 **/
 
-UNS8
-buildPDO (CO_Data * d, UNS8 numPdo, Message * pdo)
+UNS8 buildPDO (CO_Data * d, UNS8 numPdo, Message * pdo)
 {
   const indextable *TPDO_com = d->objdict + d->firstIndex->PDO_TRS + numPdo;
-  const indextable *TPDO_map =
-    d->objdict + d->firstIndex->PDO_TRS_MAP + numPdo;
+  const indextable *TPDO_map = d->objdict + d->firstIndex->PDO_TRS_MAP + numPdo;
 
   UNS8 prp_j = 0x00;
   UNS8 offset = 0x00;
@@ -644,8 +642,8 @@
                   else
                     {
 
-                      UNS16 EventTimerDuration;
-                      UNS16 InhibitTimerDuration;
+                      TIMEVAL EventTimerDuration;
+                      TIMEVAL InhibitTimerDuration;
 
                       MSG_WAR (0x306A, "Changes TPDO number : ", pdoNum);
                       /* Changes detected -> transmit message */
@@ -721,7 +719,7 @@
 **
 ** @param d
 ** @param OD_entry
-** @param bSubindex 
+** @param bSubindex
 ** @return always 0
 **/