]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
com_reset bug again
authorhadaq <hadaq>
Tue, 10 Nov 2009 20:43:49 +0000 (20:43 +0000)
committerhadaq <hadaq>
Tue, 10 Nov 2009 20:43:49 +0000 (20:43 +0000)
libtrbnet/trbnet.c

index 74215d8710ea034e88a07be1bba3a86451960845..345a912852a2f4fd5d39fe2e6389b5e95f578361 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 2.53 $";
+const char trbnet_version[] = "$Revision: 2.54 $";
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -1041,12 +1041,12 @@ int init_ports()
     
     /* write: portC[17-0] */
     *GPIOC_OE_OFFSET = GPIOC_OE_PINS;
-    
-    /* Reset Ports */
-    setbitsPC(0x30000);
-    clrbitsPC(0x30000);  
   }
   
+  /* Reset Ports */
+  setbitsPC(0x30000);
+  clrbitsPC(0x30000);    
+  
   if (unlockPorts() == -1) return -1;
     
   return 0;