#include <ftdi.h>
#include <unistd.h>
#include <pthread.h>
+#include <inttypes.h>
#include "usb-driver.h"
#include "config.h"
#include "jtagkey.h"
}
}
-void jtagkey_state(unsigned char data) {
+#ifdef DEBUG
+static void jtagkey_state(unsigned char data) {
fprintf(stderr,"Pins high: ");
if (data & JTAGKEY_TCK)
fprintf(stderr,"\n");
}
+#endif
struct jtagkey_reader_arg {
int num;
DPRINTF("write byte: %d\n", val);
if (tr[i].cmdTrans == 13)
- tapmon(val & PP_TCK, val & PP_TMS);
+ jtagmon(val & PP_TCK, val & PP_TMS, val & PP_TDI);
#endif
/* Pad writebuf for read-commands in stream */