]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Mon, 9 Jan 2012 00:54:58 +0000 (00:54 +0000)
committerhadaq <hadaq>
Mon, 9 Jan 2012 00:54:58 +0000 (00:54 +0000)
libtrbnet/trbcmd.c

index 290cafa9739d4c9b084fff816985ca4f62d2c8eb..6590b7010441a2f9a95c742dcddef5facb13a41b 100644 (file)
@@ -25,7 +25,7 @@
 
 static int hexMode = HEXMODE;
 
-static const char trbcmd_version[] = "$Revision: 2.76 $";
+static const char trbcmd_version[] = "$Revision: 2.77 $";
 
 #define BACKLOG 10
 static uint16_t tcp_port = 55555;
@@ -35,7 +35,7 @@ static int tcp_mode = 0;
 /* ---- User Buffer Size ------------------------------------------------ */
 
 static const size_t NUM_ENDPOINTS = 1024;      /* Maximum of 16KByte */
-static size_t USER_BUFFER_MAX_SIZE = 1310720;  /* *4Bytes = 5MByte   */
+static size_t USER_BUFFER_MAX_SIZE = 4194304;  /* *4Bytes = 5MByte   */
 
 /* ---- Error Handling -------------------------------------------------- */
 
@@ -99,9 +99,6 @@ void usage(const char *progName)
   fprintf(stdout,
           "  -s    only if running in -n mode, "
           "sleep time in ms\n");
-  fprintf(stdout,
-          "  -M    turn on HighMemoryMode (maximum usage is 20MByte, default: "
-          "3MByte)\n");
   fprintf(stdout, "  -d    turn on Debugging Information\n");
   fprintf(stdout, "        level 1: TRB_Package debugging\n");
   fprintf(stdout, "        level 2: +FIFO debugging\n");
@@ -196,10 +193,10 @@ int start(int argc, char **argv)
   int i;
 
 #ifdef PEXOR
-  const char optString[] = "+hf:n:d:s:HMVeD";
+  const char optString[] = "+hf:n:d:s:HVD";
   pexor_dma = 1;
 #else
-  const char optString[] = "+hf:n:d:s:HMVe";
+  const char optString[] = "+hf:n:d:s:HV";
 #endif
 
   trb_debug = 0;
@@ -236,10 +233,6 @@ int start(int argc, char **argv)
              basename(argv[0]), trbcmd_version, trbnet_version);
       return 0;
       break;
-    case 'M':
-      /* HighMem Setting */
-      USER_BUFFER_MAX_SIZE = 5242880; /* *4Bytes = 20MByte */
-      break;
 #ifdef PEXOR
     case 'D':
       pexor_dma = 0;
@@ -1263,7 +1256,7 @@ int start(int argc, char **argv)
         logError(ERROR, "Invalid command, try -h option\n");
         return -1;
       }
-      if (loop != 1) {
+      if (loop != 1 || scriptFile != NULL) {
         fprintf(stdout, "---\n");
         fflush(stdout);
       }