fooblah origin
authorhackbard <hackbard>
Sat, 21 Apr 2007 13:11:03 +0000 (13:11 +0000)
committerhackbard <hackbard>
Sat, 21 Apr 2007 13:11:03 +0000 (13:11 +0000)
fx2/cypress_fx2_xilprg.patch

index 6b9f513..7d5ace2 100644 (file)
@@ -244,7 +244,7 @@ diff -Nur xilprg-0.5/src/cable.cpp xilprg-new/src/cable.cpp
          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
@@ -350,7 +350,6 @@ diff -Nur xilprg-0.5/src/onbusb.cpp xilprg-new/src/onbusb.cpp
 +{\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
@@ -358,18 +357,19 @@ diff -Nur xilprg-0.5/src/onbusb.cpp xilprg-new/src/onbusb.cpp
 +    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