mini/mini.c
changeset 130 69c2645300ee
parent 117 b9976a5281e0
child 135 80d493917205
--- a/mini/mini.c	Fri Mar 24 08:56:16 2006 +0000
+++ b/mini/mini.c	Mon Mar 27 09:53:59 2006 +0000
@@ -29,7 +29,7 @@
 ec_domain_t *domain1 = NULL;
 
 // Datenfelder
-void *r_ssi_input, *r_ssi_status, *r_4102[3];
+//void *r_ssi_input, *r_ssi_status, *r_4102[3];
 
 // Kanäle
 uint32_t k_pos;
@@ -37,13 +37,10 @@
 
 ec_field_init_t domain1_fields[] = {
     {NULL, "1", "Beckhoff", "EL1014", "InputValue",  0},
-    {NULL, "2", "Beckhoff", "EL1014", "InputValue", 0},
-    {NULL, "3", "Beckhoff", "EL1014", "InputValue",  0},
-    {NULL, "4", "Beckhoff", "EL1014", "InputValue",  0},
-    {NULL, "5", "Beckhoff", "EL1014", "InputValue",  0},
-    {NULL, "6", "Beckhoff", "EL2004", "OutputValue", 0},
-    {NULL, "7", "Beckhoff", "EL2004", "OutputValue", 0},
-    {NULL, "8", "Beckhoff", "EL2004", "OutputValue", 0},
+    {NULL, "2", "Beckhoff", "EL2004", "OutputValue", 0},
+    //{NULL, "3", "Beckhoff", "EL3162", "InputValue",  0},
+    {NULL, "4", "Beckhoff", "EL4132", "OutputValue",  0},
+    {NULL, "6", "Beckhoff", "EL5001", "InputValue", 0},
     {}
 };
 
@@ -127,6 +124,7 @@
 
     //ecrt_master_debug(master, 2);
 
+#if 0
     if (ecrt_master_sdo_write(master, "1", 0x4061, 1,  0, 1) ||
         ecrt_master_sdo_write(master, "1", 0x4061, 2,  1, 1) ||
         ecrt_master_sdo_write(master, "1", 0x4061, 3,  1, 1) ||
@@ -139,6 +137,7 @@
         printk(KERN_ERR "EtherCAT: Failed to configure SSI!\n");
         goto out_deactivate;
     }
+#endif
 
     //ecrt_master_debug(master, 0);
 
@@ -166,8 +165,10 @@
 
     return 0;
 
+#if 0
  out_deactivate:
     ecrt_master_deactivate(master);
+#endif
 
  out_release_master:
     ecrt_release_master(master);