return NULL;\r
diff -Nur xilprg-0.5/src/onbusb.cpp xilprg-new/src/onbusb.cpp
--- xilprg-0.5/src/onbusb.cpp 1970-01-01 01:00:00.000000000 +0100
-+++ xilprg-new/src/onbusb.cpp 2007-04-10 11:32:01.000000000 +0200
++++ xilprg-new/src/onbusb.cpp 2007-04-21 14:12:15.000000000 +0200
@@ -0,0 +1,126 @@
+/*\r
+ * onboard usb\r
+{\r
+ if (bit) data |= 0x04; else data &= ~0x04;\r
+ data|=0xa0;\r
-+ //usb_bulk_write(handle,0x01,&data,1,0);\r
+}\r
+\r
+void onbusb::set_tck(int bit)\r
+ if (bit) data |= 0x10; else data &= ~0x10;\r
+ data|=0xa0;\r
+ usb_bulk_write(handle,0x01,&data,1,0);\r
++ // if(data&0x10) printf("tms: %d tdi: %d\n",data&0x08?1:0,data&0x04?1:0);
+}\r
+\r
+void onbusb::set_tms(int bit)\r
+{\r
+ if (bit) data |= 0x08; else data &= ~0x08;\r
+ data|=0xa0;\r
-+ //usb_bulk_write(handle,0x01,&data,1,0);\r
+}\r
+\r
+int onbusb::get_tdo()\r
+{\r
+ usb_bulk_read(handle,0x81,&data,1,0);\r
++ // printf(" ----> %d\n",data&0x01?1:0);
+ return data & 0x01 ? 1 : 0;\r
+}\r
diff -Nur xilprg-0.5/src/onbusb.h xilprg-new/src/onbusb.h