Expose jtag_unregister_event_callback with related API declarations.
[fw/openocd] / src / jtag / gw16012.c
index 441234c19b24c9785fc49b0cba605139e895b74f..0ea66340c465941d0cd802216a1f5725c0960c34 100644 (file)
@@ -21,8 +21,8 @@
 #include "config.h"
 #endif
 
-#define INCLUDE_JTAG_INTERFACE_H
 #include "interface.h"
+#include "commands.h"
 
 
 #if 1
@@ -557,7 +557,7 @@ static int gw16012_init(void)
        gw16012_input(&status_port);
        gw16012_msb = (status_port & 0x80) ^ 0x80;
 
-       gw16012_speed(jtag_speed);
+       gw16012_speed(jtag_get_speed());
        gw16012_reset(0, 0);
 
        return ERROR_OK;