]> git.sur5r.net Git - openocd/blobdiff - src/jtag/dummy.c
Simplify and improve parport_handle_parport_port_command:
[openocd] / src / jtag / dummy.c
index cc799faa9478a1f55b4d564ad91c3b7ddc183728..2ad8c10fabce53c20aa4b43325aff64b65cf8c30 100644 (file)
@@ -21,8 +21,7 @@
 #include "config.h"
 #endif
 
-#define INCLUDE_JTAG_INTERFACE_H
-#include "jtag.h"
+#include "interface.h"
 #include "bitbang.h"
 
 
@@ -124,7 +123,7 @@ static void dummy_reset(int trst, int srst)
 {
        dummy_clock = 0;
 
-       if (trst || (srst && (jtag_reset_config & RESET_SRST_PULLS_TRST)))
+       if (trst || (srst && (jtag_get_reset_config() & RESET_SRST_PULLS_TRST)))
                dummy_state = TAP_RESET;
 
        LOG_DEBUG("reset to: %s", tap_state_name(dummy_state) );