examples/xenomai/main.c
changeset 2056 a92e8f119723
parent 2055 d246ab6b50d2
child 2589 2b9c78543663
--- a/examples/xenomai/main.c	Thu Mar 17 21:13:36 2011 +0100
+++ b/examples/xenomai/main.c	Mon Mar 21 08:06:49 2011 +0100
@@ -2,7 +2,7 @@
  *
  *  $Id$
  *
- *  usermdtest.c	Copyright (C) 2009-2010  Moehwald GmbH B.Benner
+ *  main.c	        Copyright (C) 2009-2010  Moehwald GmbH B.Benner
  *                                2011       IgH Andreas Stewering-Bone
  *
  *  This file is part of ethercatrtdm interface to IgH EtherCAT master 
@@ -59,16 +59,13 @@
 int rt_fd = -1;
 int run=0;
 
-//struct timeval tv;
 unsigned int sync_ref_counter = 0;
 
 CstructMstrAttach MstrAttach;
 
 /****************************************************************************/
 
-// Application parameters
-//#define FREQUENCY 1000
-//#define PRIORITY 1
+
 
 // Optional features
 #define CONFIGURE_PDOS  1
@@ -577,7 +574,7 @@
   float period;
 
 
-  period=1E-4;
+  period=1E-3; //1kHz
 
   
   periodns=(RTIME)(((double)period * 1E9) + 0.4999999);