# HG changeset patch
# User Edouard Tisserant
# Date 1521635623 -3600
# Node ID 32d146b64a35278218c149ee676fe24f431a4d7c
# Parent f0d16976e46ecc69c9c5c71df174a68a9df1a2ab
Rename timer.h into timers.h to avoid clash with Xenomai includes.
diff -r f0d16976e46e -r 32d146b64a35 CanFestival-3.vc10.vcxproj
--- a/CanFestival-3.vc10.vcxproj Tue Mar 20 16:04:52 2018 +0100
+++ b/CanFestival-3.vc10.vcxproj Wed Mar 21 13:33:43 2018 +0100
@@ -116,7 +116,7 @@
-
+
diff -r f0d16976e46e -r 32d146b64a35 CanFestival-3.vc10.vcxproj.filters
--- a/CanFestival-3.vc10.vcxproj.filters Tue Mar 20 16:04:52 2018 +0100
+++ b/CanFestival-3.vc10.vcxproj.filters Wed Mar 21 13:33:43 2018 +0100
@@ -110,7 +110,7 @@
Header Files
-
+
Header Files
diff -r f0d16976e46e -r 32d146b64a35 CanFestival-3.vc9.vcproj
--- a/CanFestival-3.vc9.vcproj Tue Mar 20 16:04:52 2018 +0100
+++ b/CanFestival-3.vc9.vcproj Wed Mar 21 13:33:43 2018 +0100
@@ -300,7 +300,7 @@
>
#include
-#include
+#include
#include
-#include "timer.h"
+#include "timers.h"
#include "applicfg.h"
static spinlock_t lock = SPIN_LOCK_UNLOCKED;
diff -r f0d16976e46e -r 32d146b64a35 drivers/timers_kernel_xeno/timers_kernel_xeno.c
--- a/drivers/timers_kernel_xeno/timers_kernel_xeno.c Tue Mar 20 16:04:52 2018 +0100
+++ b/drivers/timers_kernel_xeno/timers_kernel_xeno.c Wed Mar 21 13:33:43 2018 +0100
@@ -25,7 +25,7 @@
#include
#include
-#include
+#include
#include
#include
#include
@@ -33,7 +33,7 @@
#include "applicfg.h"
#include "can_driver.h"
-#include "timer.h"
+#include "timers.h"
#define TIMERLOOP_TASK_CREATED 1
diff -r f0d16976e46e -r 32d146b64a35 drivers/timers_rtai/timers_rtai.c
--- a/drivers/timers_rtai/timers_rtai.c Tue Mar 20 16:04:52 2018 +0100
+++ b/drivers/timers_rtai/timers_rtai.c Wed Mar 21 13:33:43 2018 +0100
@@ -11,7 +11,7 @@
#include "applicfg.h"
#include "can_driver.h"
-#include "timer.h"
+#include "timers.h"
#define TIMERLOOP_TASK_CREATED 1
diff -r f0d16976e46e -r 32d146b64a35 drivers/timers_unix/timers_unix.c
--- a/drivers/timers_unix/timers_unix.c Tue Mar 20 16:04:52 2018 +0100
+++ b/drivers/timers_unix/timers_unix.c Wed Mar 21 13:33:43 2018 +0100
@@ -6,7 +6,7 @@
#include
#include
-#include
+#include
static pthread_mutex_t CanFestival_mutex = PTHREAD_MUTEX_INITIALIZER;
diff -r f0d16976e46e -r 32d146b64a35 drivers/timers_win32/timers_win32.c
--- a/drivers/timers_win32/timers_win32.c Tue Mar 20 16:04:52 2018 +0100
+++ b/drivers/timers_win32/timers_win32.c Wed Mar 21 13:33:43 2018 +0100
@@ -31,7 +31,7 @@
#include "applicfg.h"
#include "can_driver.h"
-#include "timer.h"
+#include "timers.h"
#include "timers_driver.h"
#ifdef __cplusplus
diff -r f0d16976e46e -r 32d146b64a35 drivers/timers_xeno/timers_xeno.c
--- a/drivers/timers_xeno/timers_xeno.c Tue Mar 20 16:04:52 2018 +0100
+++ b/drivers/timers_xeno/timers_xeno.c Wed Mar 21 13:33:43 2018 +0100
@@ -11,7 +11,7 @@
#include "applicfg.h"
#include "can_driver.h"
-#include "timer.h"
+#include "timers.h"
#define TIMERLOOP_TASK_CREATED 1
diff -r f0d16976e46e -r 32d146b64a35 drivers/win32/win32.c
--- a/drivers/win32/win32.c Tue Mar 20 16:04:52 2018 +0100
+++ b/drivers/win32/win32.c Wed Mar 21 13:33:43 2018 +0100
@@ -33,7 +33,7 @@
#endif
#include "canfestival.h"
-#include "timer.h"
+#include "timers.h"
#include "timers_driver.h"
#ifdef __cplusplus
diff -r f0d16976e46e -r 32d146b64a35 examples/AVR/Slave/AVR-Studio/SlaveAVR.aps
--- a/examples/AVR/Slave/AVR-Studio/SlaveAVR.aps Tue Mar 20 16:04:52 2018 +0100
+++ b/examples/AVR/Slave/AVR-Studio/SlaveAVR.aps Wed Mar 21 13:33:43 2018 +0100
@@ -1,1 +1,1 @@
-SlaveAVR16-Dec-2007 22:17:1007-Mar-2008 15:45:15241016-Dec-2007 22:17:1044, 13, 0, 528AVR GCCI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\SlaveAVR.elfI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\AVR-Studio\JTAGICE mkIIAT90CAN128falseR00R01R02R03R04R05R06R07R08R09R10R11R12R13R14R15R16R17R18R19R20R21R22R23R24R25R26R27R28R29R30R31Auto00Read_Inputs_8_BitInterrupt_Mask_Any_Change_8_BitInterrupt_Mask_Low_to_High_8_BitInterrupt_Mask_High_to_Low_8_Bittransmission0I:\Entwicklung\Firmware\CAN\CanFestival-3\drivers\AVR\can_AVR.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\dcf.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\timer.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\emcy.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\lifegrd.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\lss.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\nmtMaster.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\nmtSlave.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\objacces.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\pdo.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\sdo.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\states.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\sync.cI:\Entwicklung\Firmware\CAN\CanFestival-3\drivers\AVR\timer_AVR.cI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\ObjDict.cI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\main.cI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\ds401.cI:\Entwicklung\Firmware\CAN\CanFestival-3\include\timers_driver.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\can.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\can_driver.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\data.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\dcf.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\def.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\emcy.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\lifegrd.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\lss.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\nmtMaster.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\nmtSlave.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\objacces.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\objdictdef.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\pdo.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\sdo.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\states.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\sync.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\sysdep.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\timer.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\timerscfg.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\applicfg.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\can_AVR.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\can_drv.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\canfestival.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\config.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\iar.hI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\ObjDict.hdefault\SlaveAVR.lssdefault\SlaveAVR.mapI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\MakefiledefaultYESI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\Makefileat90can12811
SlaveAVR.elfdefault\0..\..\..\..\include\..\..\..\..\include\AVR\.\-Wall -gdwarf-2 -Os -fsigned-char -fpack-structdefault1C:\programme\WinAVR\bin\avr-gcc.exeC:\programme\WinAVR\utils\bin\make.exe000001920080000000100011main2013856123800000001100000I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\main.c100001I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\Makefile100002default\Makefile1
+SlaveAVR16-Dec-2007 22:17:1007-Mar-2008 15:45:15241016-Dec-2007 22:17:1044, 13, 0, 528AVR GCCI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\SlaveAVR.elfI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\AVR-Studio\JTAGICE mkIIAT90CAN128falseR00R01R02R03R04R05R06R07R08R09R10R11R12R13R14R15R16R17R18R19R20R21R22R23R24R25R26R27R28R29R30R31Auto00Read_Inputs_8_BitInterrupt_Mask_Any_Change_8_BitInterrupt_Mask_Low_to_High_8_BitInterrupt_Mask_High_to_Low_8_Bittransmission0I:\Entwicklung\Firmware\CAN\CanFestival-3\drivers\AVR\can_AVR.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\dcf.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\timer.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\emcy.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\lifegrd.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\lss.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\nmtMaster.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\nmtSlave.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\objacces.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\pdo.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\sdo.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\states.cI:\Entwicklung\Firmware\CAN\CanFestival-3\src\sync.cI:\Entwicklung\Firmware\CAN\CanFestival-3\drivers\AVR\timer_AVR.cI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\ObjDict.cI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\main.cI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\ds401.cI:\Entwicklung\Firmware\CAN\CanFestival-3\include\timers_driver.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\can.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\can_driver.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\data.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\dcf.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\def.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\emcy.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\lifegrd.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\lss.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\nmtMaster.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\nmtSlave.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\objacces.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\objdictdef.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\pdo.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\sdo.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\states.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\sync.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\sysdep.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\timers.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\timerscfg.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\applicfg.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\can_AVR.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\can_drv.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\canfestival.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\config.hI:\Entwicklung\Firmware\CAN\CanFestival-3\include\AVR\iar.hI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\ObjDict.hdefault\SlaveAVR.lssdefault\SlaveAVR.mapI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\MakefiledefaultYESI:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\Makefileat90can12811
SlaveAVR.elfdefault\0..\..\..\..\include\..\..\..\..\include\AVR\.\-Wall -gdwarf-2 -Os -fsigned-char -fpack-structdefault1C:\programme\WinAVR\bin\avr-gcc.exeC:\programme\WinAVR\utils\bin\make.exe000001920080000000100011main2013856123800000001100000I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\main.c100001I:\Entwicklung\Firmware\CAN\CanFestival-3\examples\AVR\Slave\Makefile100002default\Makefile1
diff -r f0d16976e46e -r 32d146b64a35 examples/AVR/Slave/ds401.h
--- a/examples/AVR/Slave/ds401.h Tue Mar 20 16:04:52 2018 +0100
+++ b/examples/AVR/Slave/ds401.h Wed Mar 21 13:33:43 2018 +0100
@@ -27,7 +27,7 @@
// Includes for the Canfestival
#include "canfestival.h"
-#include "timer.h"
+#include "timers.h"
#include "ObjDict.h"
diff -r f0d16976e46e -r 32d146b64a35 examples/gene_SYNC_HCS12/appli.c
--- a/examples/gene_SYNC_HCS12/appli.c Tue Mar 20 16:04:52 2018 +0100
+++ b/examples/gene_SYNC_HCS12/appli.c Wed Mar 21 13:33:43 2018 +0100
@@ -44,7 +44,7 @@
#include "../include/objacces.h"
#include "../include/sdo.h"
#include "../include/pdo.h"
-#include "../include/timer.h"
+#include "../include/timers.h"
#include "../include/lifegrd.h"
#include "../include/sync.h"
diff -r f0d16976e46e -r 32d146b64a35 include/lss.h
--- a/include/lss.h Tue Mar 20 16:04:52 2018 +0100
+++ b/include/lss.h Wed Mar 21 13:33:43 2018 +0100
@@ -91,7 +91,7 @@
struct struct_lss_transfer;
-//#include "timer.h"
+//#include "timers.h"
#ifdef CO_ENABLE_LSS_FS
struct struct_lss_fs_transfer {
diff -r f0d16976e46e -r 32d146b64a35 include/sdo.h
--- a/include/sdo.h Tue Mar 20 16:04:52 2018 +0100
+++ b/include/sdo.h Wed Mar 21 13:33:43 2018 +0100
@@ -36,7 +36,7 @@
struct struct_s_transfer;
-#include "timer.h"
+#include "timers.h"
/* Block mode : Data consumer receive step
* - set to RXSTEP_STARTED when client receive initiate upload response
diff -r f0d16976e46e -r 32d146b64a35 include/timer.h
--- a/include/timer.h Tue Mar 20 16:04:52 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-/*
-This file is part of CanFestival, a library implementing CanOpen Stack.
-
-Copyright (C): Edouard TISSERANT and Francis DUPIN
-
-See COPYING file for copyrights details.
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-#ifndef __timer_h__
-#define __timer_h__
-
-#include
-#include
-
-#define TIMER_HANDLE INTEGER16
-
-#include "data.h"
-
-/* --------- types and constants definitions --------- */
-#define TIMER_FREE 0
-#define TIMER_ARMED 1
-#define TIMER_TRIG 2
-#define TIMER_TRIG_PERIOD 3
-
-#define TIMER_NONE -1
-
-typedef void (*TimerCallback_t)(CO_Data* d, UNS32 id);
-
-struct struct_s_timer_entry {
- UNS8 state;
- CO_Data* d;
- TimerCallback_t callback; /* The callback func. */
- UNS32 id; /* The callback func. */
- TIMEVAL val;
- TIMEVAL interval; /* Periodicity */
-};
-
-typedef struct struct_s_timer_entry s_timer_entry;
-
-/* --------- prototypes --------- */
-/*#define SetAlarm(d, id, callback, value, period) printf("%s, %d, SetAlarm(%s, %s, %s, %s, %s)\n",__FILE__, __LINE__, #d, #id, #callback, #value, #period); _SetAlarm(d, id, callback, value, period)*/
-/**
- * @ingroup timer
- * @brief Set an alarm to execute a callback function when expired.
- * @param *d Pointer to a CAN object data structure
- * @param id The alarm Id
- * @param callback A callback function
- * @param value Call the callback function at current time + value
- * @param period Call periodically the callback function
- * @return handle The timer handle
- */
-TIMER_HANDLE SetAlarm(CO_Data* d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period);
-
-/**
- * @ingroup timer
- * @brief Delete an alarm before expiring.
- * @param handle A timer handle
- * @return The timer handle
- */
-TIMER_HANDLE DelAlarm(TIMER_HANDLE handle);
-
-void TimeDispatch(void);
-
-/**
- * @ingroup timer
- * @brief Set a timerfor a given time.
- * @param value The time value.
- */
-void setTimer(TIMEVAL value);
-
-/**
- * @ingroup timer
- * @brief Get the time elapsed since latest timer occurence.
- * @return time elapsed since latest timer occurence
- */
-TIMEVAL getElapsedTime(void);
-
-#endif /* #define __timer_h__ */
diff -r f0d16976e46e -r 32d146b64a35 include/timers.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/timers.h Wed Mar 21 13:33:43 2018 +0100
@@ -0,0 +1,92 @@
+/*
+This file is part of CanFestival, a library implementing CanOpen Stack.
+
+Copyright (C): Edouard TISSERANT and Francis DUPIN
+
+See COPYING file for copyrights details.
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __timers_h__
+#define __timers_h__
+
+#include
+#include
+
+#define TIMER_HANDLE INTEGER16
+
+#include "data.h"
+
+/* --------- types and constants definitions --------- */
+#define TIMER_FREE 0
+#define TIMER_ARMED 1
+#define TIMER_TRIG 2
+#define TIMER_TRIG_PERIOD 3
+
+#define TIMER_NONE -1
+
+typedef void (*TimerCallback_t)(CO_Data* d, UNS32 id);
+
+struct struct_s_timer_entry {
+ UNS8 state;
+ CO_Data* d;
+ TimerCallback_t callback; /* The callback func. */
+ UNS32 id; /* The callback func. */
+ TIMEVAL val;
+ TIMEVAL interval; /* Periodicity */
+};
+
+typedef struct struct_s_timer_entry s_timer_entry;
+
+/* --------- prototypes --------- */
+/*#define SetAlarm(d, id, callback, value, period) printf("%s, %d, SetAlarm(%s, %s, %s, %s, %s)\n",__FILE__, __LINE__, #d, #id, #callback, #value, #period); _SetAlarm(d, id, callback, value, period)*/
+/**
+ * @ingroup timer
+ * @brief Set an alarm to execute a callback function when expired.
+ * @param *d Pointer to a CAN object data structure
+ * @param id The alarm Id
+ * @param callback A callback function
+ * @param value Call the callback function at current time + value
+ * @param period Call periodically the callback function
+ * @return handle The timer handle
+ */
+TIMER_HANDLE SetAlarm(CO_Data* d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period);
+
+/**
+ * @ingroup timer
+ * @brief Delete an alarm before expiring.
+ * @param handle A timer handle
+ * @return The timer handle
+ */
+TIMER_HANDLE DelAlarm(TIMER_HANDLE handle);
+
+void TimeDispatch(void);
+
+/**
+ * @ingroup timer
+ * @brief Set a timerfor a given time.
+ * @param value The time value.
+ */
+void setTimer(TIMEVAL value);
+
+/**
+ * @ingroup timer
+ * @brief Get the time elapsed since latest timer occurence.
+ * @return time elapsed since latest timer occurence
+ */
+TIMEVAL getElapsedTime(void);
+
+#endif /* #define __timers_h__ */
diff -r f0d16976e46e -r 32d146b64a35 include/timers_driver.h
--- a/include/timers_driver.h Tue Mar 20 16:04:52 2018 +0100
+++ b/include/timers_driver.h Wed Mar 21 13:33:43 2018 +0100
@@ -28,7 +28,7 @@
#define __timer_driver_h__
#include "timerscfg.h"
-#include "timer.h"
+#include "timers.h"
// For use from CAN driver
diff -r f0d16976e46e -r 32d146b64a35 src/symbols.c
--- a/src/symbols.c Tue Mar 20 16:04:52 2018 +0100
+++ b/src/symbols.c Wed Mar 21 13:33:43 2018 +0100
@@ -117,7 +117,7 @@
EXPORT_SYMBOL (sendSYNCMessage);
EXPORT_SYMBOL (proceedSYNC);
-// timer.h
+// timers.h
EXPORT_SYMBOL (SetAlarm);
EXPORT_SYMBOL (DelAlarm);
EXPORT_SYMBOL (TimeDispatch);
diff -r f0d16976e46e -r 32d146b64a35 src/timer.c
--- a/src/timer.c Tue Mar 20 16:04:52 2018 +0100
+++ b/src/timer.c Wed Mar 21 13:33:43 2018 +0100
@@ -33,7 +33,7 @@
/* #define DEBUG_ERR_CONSOLE_ON */
#include
-#include "timer.h"
+#include "timers.h"
/* --------- The timer table --------- */
s_timer_entry timers[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},};
diff -r f0d16976e46e -r 32d146b64a35 src/win32/CanFestival-3.def
--- a/src/win32/CanFestival-3.def Tue Mar 20 16:04:52 2018 +0100
+++ b/src/win32/CanFestival-3.def Wed Mar 21 13:33:43 2018 +0100
@@ -120,7 +120,7 @@
EMCY_errorRecovered
_post_emcy
- ; timer.h
+ ; timers.h
SetAlarm
DelAlarm
TimeDispatch