]> cvs.zerfleddert.de Git - usb-driver/blobdiff - jtagkey.c
rework more XPCU code. INT_* still needs to be moved
[usb-driver] / jtagkey.c
index 6ed7375c82668f79413bf4fa3344d774006660d0..fc9587cb5dcc1e23e873e08d40ea38470fd0e96e 100644 (file)
--- a/jtagkey.c
+++ b/jtagkey.c
@@ -2,6 +2,7 @@
 #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"
@@ -108,7 +109,8 @@ void jtagkey_close(int handle) {
        }
 }
 
        }
 }
 
-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,"Pins high: ");
 
        if (data & JTAGKEY_TCK)
@@ -128,6 +130,7 @@ void jtagkey_state(unsigned char data) {
        
        fprintf(stderr,"\n");
 }
        
        fprintf(stderr,"\n");
 }
+#endif
 
 struct jtagkey_reader_arg {
        int             num;
 
 struct jtagkey_reader_arg {
        int             num;
Impressum, Datenschutz