Fixed SII reading timeout bug on 100 Hz kernels.
authorFlorian Pose <fp@igh-essen.com>
Tue, 22 Jul 2008 08:56:53 +0000
changeset 1123 17bef224061d
parent 1122 ee305a780a02
child 1124 5da7c73c4f63
Fixed SII reading timeout bug on 100 Hz kernels.
master/fsm_sii.c
--- a/master/fsm_sii.c	Mon Jul 21 22:20:23 2008 +0000
+++ b/master/fsm_sii.c	Tue Jul 22 08:56:53 2008 +0000
@@ -43,15 +43,18 @@
 #include "master.h"
 #include "fsm_sii.h"
 
-/**
- * Read/Write timeout. [ms]
+/** Read/write timeout [ms].
+ *
+ * Used to calculate timeouts bsed on the jiffies counter.
+ *
+ * \attention Must be more than 10 to avoid problems on kernels that run with
+ * a timer interupt frequency of 100 Hz.
  */
-#define SII_TIMEOUT 10
-
-/**
- * Time before evaluating answer at writing. [ms]
+#define SII_TIMEOUT 20
+
+/** Time before evaluating answer at writing [ms].
  */
-#define SII_INHIBIT  5
+#define SII_INHIBIT 5
 
 //#define SII_DEBUG