LOADLIBES+=${EXTRA_LOADLIBES}
all: default
-bin: mstflint mread mwrite
+bin: mstflint mread mwrite mstdump
default: bin
static: bin
mread: mread.c mtcr.h
$(CC) ${CFLAGS} mread.c -o mread
+mstdump: mstdump.c mtcr.h
+ $(CC) ${CFLAGS} mstdump.c -o mstdump
+
clean:
rm -f mstflint mread mwrite mstflint.o
*/
+#include <mtcr.h>
#include <stdio.h>
#include <stdlib.h>
-#include <mtcr.h>
static unsigned tavor_address_list[]=
{
int list_size;
unsigned* list;
+ if (argc != 2)
+ {
+ fprintf(stderr,"Usage: %s <device>.\n", argv[0]);
+ return 2;
+ }
+
+#if 0
if (argc != 2 && argc != 3)
{
fprintf(stderr,"Usage: %s <device> [i2c-slave].\n", argv[0]);
return 2;
}
+#endif
f=mopen(argv[1]);
return 1;
}
+#if 0
if (argc == 3)
mset_i2c_slave(f, strtoul(argv[2],0,0));
-
+#endif
myread4(f,0xF0014,&hca_id);
myread4(f,0x60014,&is3_id);