]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Tue, 14 Jul 2009 17:37:20 +0000 (17:37 +0000)
committerhadeshyp <hadeshyp>
Tue, 14 Jul 2009 17:37:20 +0000 (17:37 +0000)
libtrbnet/trbnet.c

index 5c02b3104f9f52a0ba94b9f4917393c96923f4eb..7ea9b7b4463fad0c41d4058b57981b0aa2cad55a 100644 (file)
 #define SHORT_TRANSFER                   0x0100
 
 /* Other  */
-#define MAX_TIME_OUT                     500
+#define MAX_TIME_OUT                     1500000
 #define DATA_BUFFER_SIZE                 8192
 
 
@@ -352,7 +352,7 @@ static int trb_fifo_read(uint8_t channel,
   unsigned int dataCtr = 0;
   int packageCtr = -1;
   unsigned int endPointCtr = 0;
-  
+
   unsigned int timeout = 0;
 
   /* Determin FIFO-Address */
@@ -724,7 +724,7 @@ static int trb_fifo_read(uint8_t channel,
       do {
        read32_from_FPGA(fifoBuffer, tmp);
       } while (((*tmp & MASK_FIFO_VALID) == 0) && (++timeout < MAX_TIME_OUT));
-      
+
       if (timeout >= MAX_TIME_OUT) {
        trb_fifo_flush(channel);
        trb_errno = TRB_FIFO_TIMEOUT;
@@ -733,7 +733,7 @@ static int trb_fifo_read(uint8_t channel,
       }
     }
   }
-  
+
   /* Copy StatusBits and Sequenze of TerminationPackage */
   trb_term.status_common = package.F2;
   trb_term.status_channel =  package.F1;