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;
/* ---- 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 -------------------------------------------------- */
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");
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;
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;
logError(ERROR, "Invalid command, try -h option\n");
return -1;
}
- if (loop != 1) {
+ if (loop != 1 || scriptFile != NULL) {
fprintf(stdout, "---\n");
fflush(stdout);
}