static class_timers s_timers;
+void TimerCleanup(void)
+{
+ /* only used in realtime apps */
+}
+
void StartTimerLoop(TimerCallback_t init_callback)
{
s_timers.start_timer_thread();
s_timers.resume_timer_thread();
}
-void StopTimerLoop(void)
+void StopTimerLoop(TimerCallback_t init_callback)
{
s_timers.stop_timer_thread();
}
int
main_can (s_BOARD SlaveBoard, char *LibraryPath)
{
- printf ("Bus name: %s Freq: %s Driver: %s\n",
+#if !defined(WIN32) && !defined(__CYGWIN__)
+ TimerInit();
+#endif
+
+ printf ("Bus name: %s Freq: %s Driver: %s\n",
SlaveBoard.busname, SlaveBoard.baudrate, LibraryPath);
- TimerInit();
#ifndef NOT_USE_DYNAMIC_LOADING
if (LoadCanDriver (LibraryPath) == NULL)
*textLog << wxT ("Unable to load library\n");