]> git.zerfleddert.de Git - rigol/commitdiff
skeleton for rigold webserver
authorMichael Gernoth <michael@gernoth.net>
Sun, 6 Jun 2010 13:30:49 +0000 (15:30 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 6 Jun 2010 13:30:49 +0000 (15:30 +0200)
.gitignore
Makefile
rigold.c [new file with mode: 0644]

index 79d323feea181550f895d64ecbf94107d4d8810e..c3ed0026ba3050a8632f9ad48fcb99babb089d03 100644 (file)
@@ -1,6 +1,8 @@
 raw2gp
 rigol
 raw2gp
 rigol
+rigold
 rigol.o
 rigol.o
+rigold.o
 png.o
 usbtmc.o
 commands.o
 png.o
 usbtmc.o
 commands.o
index d499492d0f03487fdd4fd1b827099d5a05e89e39..54c52abc81bb789299e9ef10997a1f2305883530 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,14 @@
 
 
-CFILES=rigol.c
-OFILES=rigol.o png.o usbtmc.o commands.o
+OFILES=png.o usbtmc.o commands.o
 CFLAGS=-O2 -Wall
 LDFLAGS=-lusb -lreadline -lz
 CC=gcc
 
 CFLAGS=-O2 -Wall
 LDFLAGS=-lusb -lreadline -lz
 CC=gcc
 
-all: rigol raw2gp
+all: rigol rigold raw2gp
 
 
-rigol: $(OFILES)
+rigol: rigol.o $(OFILES)
 
 
-rigol.o: rigol.c
+rigold: rigold.o $(OFILES)
 
 clean:
        rm -f *.o rigol raw2gp *~
 
 clean:
        rm -f *.o rigol raw2gp *~
diff --git a/rigold.c b/rigold.c
new file mode 100644 (file)
index 0000000..b32c474
--- /dev/null
+++ b/rigold.c
@@ -0,0 +1,12 @@
+#include <usb.h>
+
+#include "usbtmc.h"
+
+int main(int argc, char **argv) 
+{
+       struct usb_dev_handle *sc;
+
+       sc = usbtmc_initscope();
+       usbtmc_close(sc);
+       return 0;
+}
Impressum, Datenschutz