#include <trbnet.h>
#include <trberror.h>
-static const char pulser_version[] = "$Revision: 1.7 $";
+static const char pulser_version[] = "$Revision: 1.8 $";
/* 6MByte for 6 Sectors should be enough */
#define BUFFER_SIZE (6 * 1024 * 1024 / 4)
}
/* open port */
- init_ports();
+#ifndef TRB_RPC
+ init_ports();
+#else
+ trb_connect(NULL);
+#endif
/* Open HLD-File */
if (strncmp(hldFileName, "stdout", 256) != 0) {
#define BUFFER_SIZE (6 * 4096)
-static const char trb_i2c_version[] = "$Revision: 1.6 $";
+static const char trb_i2c_version[] = "$Revision: 1.7 $";
static const uint16_t trb_i2c_register = 0x8040;
}
/* Open port */
+#ifndef TRB_RPC
init_ports();
+#else
+ trb_connect(NULL);
+#endif
if (strcmp(argv[optind], "w") == 0) {
static FlashType flashType = FLASH_INVALID;
static uint32_t manId = 0;
-static const char trbflash_version[] = "$Revision: 2.15 $";
+static const char trbflash_version[] = "$Revision: 2.16 $";
static uint32_t mdcFlashSelect = 1;
usage(basename(argv[0]));
exit(EXIT_FAILURE);
}
-
+
+#ifndef TRB_RPC
if (init_ports() == -1) {
trb_error("Init_Ports");
exit(EXIT_FAILURE);
}
+#else
+ trb_connect(NULL);
+#endif
atexit(atexit0);
#define TEMP_RESOLUTION 0.0625
-static const char trbrichcmd_version[] = "$Revision: 1.7 $";
+static const char trbrichcmd_version[] = "$Revision: 1.8 $";
static const uint16_t adcm_uid_register = 0xc000;
}
/* Open port */
+#ifndef TRB_RPC
init_ports();
-
+#else
+ trb_connect(NULL);
+#endif
+
if (strcmp(argv[optind], "uid") == 0) {
/*************************************************/