]> git.zerfleddert.de Git - usb-driver/blobdiff - jtagkey.c
XILINX platform cable USB DLC9 works, too (reported by Johannes Hanika)
[usb-driver] / jtagkey.c
index ffae2fa1a99898f997114ce1e3da666500c43a93..d23c60d244a06e6e04e368b1e701b777875d725d 100644 (file)
--- a/jtagkey.c
+++ b/jtagkey.c
@@ -2,9 +2,11 @@
 #include <ftdi.h>
 #include <unistd.h>
 #include <pthread.h>
 #include <ftdi.h>
 #include <unistd.h>
 #include <pthread.h>
+#include <inttypes.h>
 #include "usb-driver.h"
 #include "config.h"
 #include "jtagkey.h"
 #include "usb-driver.h"
 #include "config.h"
 #include "jtagkey.h"
+#include "jtagmon.h"
 
 #define USBBUFSIZE 1048576
 #define JTAG_SPEED 100000
 
 #define USBBUFSIZE 1048576
 #define JTAG_SPEED 100000
@@ -206,6 +208,9 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
 #ifdef DEBUG
                if (tr[i].cmdTrans == 13)
                        DPRINTF("write byte: %d\n", val);
 #ifdef DEBUG
                if (tr[i].cmdTrans == 13)
                        DPRINTF("write byte: %d\n", val);
+
+               if (tr[i].cmdTrans == 13)
+                       jtagmon(val & PP_TCK, val & PP_TMS, val & PP_TDI);
 #endif
 
                /* Pad writebuf for read-commands in stream */
 #endif
 
                /* Pad writebuf for read-commands in stream */
Impressum, Datenschutz