aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-01-09 14:43:26 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2012-01-12 20:43:48 +0000
commit0aefdbd446ed35bbc507c517b96e99d5e6e01e3d (patch)
tree5f1fe104fb3cca86a363df626d4ee25865e78071 /src
parentad0847ca38e4c9d7ea0051ac7718afd3aa61868e (diff)
downloadriscv-openocd-0aefdbd446ed35bbc507c517b96e99d5e6e01e3d.zip
riscv-openocd-0aefdbd446ed35bbc507c517b96e99d5e6e01e3d.tar.gz
riscv-openocd-0aefdbd446ed35bbc507c517b96e99d5e6e01e3d.tar.bz2
stlink: add dummy speed handlers
Change-Id: I0445be7867637728145941b06225dc0acc5380e8 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/355 Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r--src/jtag/stlink/stlink_interface.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/jtag/stlink/stlink_interface.c b/src/jtag/stlink/stlink_interface.c
index a2ac99f..fc5edc6 100644
--- a/src/jtag/stlink/stlink_interface.c
+++ b/src/jtag/stlink/stlink_interface.c
@@ -101,6 +101,18 @@ static int stlink_interface_speed(int speed)
return ERROR_OK;
}
+static int stlink_speed_div(int speed, int *khz)
+{
+ *khz = speed;
+ return ERROR_OK;
+}
+
+static int stlink_khz(int khz, int *jtag_speed)
+{
+ *jtag_speed = khz;
+ return ERROR_OK;
+}
+
static int stlink_interface_execute_queue(void)
{
LOG_DEBUG("stlink_interface_execute_queue: ignored");
@@ -217,9 +229,10 @@ struct jtag_interface stlink_interface = {
.supported = 0,
.commands = stlink_interface_command_handlers,
.transports = stlink_transports,
-
.init = stlink_interface_init,
.quit = stlink_interface_quit,
.speed = stlink_interface_speed,
+ .speed_div = stlink_speed_div,
+ .khz = stlink_khz,
.execute_queue = stlink_interface_execute_queue,
};