]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
bug fix in com_reset()
authorhadaq <hadaq>
Sun, 1 Nov 2009 19:07:27 +0000 (19:07 +0000)
committerhadaq <hadaq>
Sun, 1 Nov 2009 19:07:27 +0000 (19:07 +0000)
libtrbnet/trbnet.c

index 098815a1686947a4b862a040a453801f5cf544d6..a2dee7597cf351cda1a5e52dc41658c2af360de5 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 2.50 $";
+const char trbnet_version[] = "$Revision: 2.51 $";
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -1543,10 +1543,10 @@ int network_reset()
   if (trb_debug > 0) {
     fprintf(stderr, "network_reset started.\n");
   }
-  
-  if (fpga_register_write(0x10, 0x0000) == -1) return -1;
-  if (fpga_register_write(0x10, 0x8000) == -1) return -1;
-  if (fpga_register_write(0x10, 0x0000) == -1) return -1;
+
+  write32_to_FPGA(0x10, 0x0000);  
+  write32_to_FPGA(0x10, 0x8000);  
+  write32_to_FPGA(0x10, 0x8000);  
   
   if (unlockPorts() == -1) return -1;