Commit 0aefdbd4 authored by Spencer Oliver's avatar Spencer Oliver
Browse files

stlink: add dummy speed handlers



Change-Id: I0445be7867637728145941b06225dc0acc5380e8
Signed-off-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/355
Tested-by: jenkins
parent ad0847ca
...@@ -101,6 +101,18 @@ static int stlink_interface_speed(int speed) ...@@ -101,6 +101,18 @@ static int stlink_interface_speed(int speed)
return ERROR_OK; 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) static int stlink_interface_execute_queue(void)
{ {
LOG_DEBUG("stlink_interface_execute_queue: ignored"); LOG_DEBUG("stlink_interface_execute_queue: ignored");
...@@ -217,9 +229,10 @@ struct jtag_interface stlink_interface = { ...@@ -217,9 +229,10 @@ struct jtag_interface stlink_interface = {
.supported = 0, .supported = 0,
.commands = stlink_interface_command_handlers, .commands = stlink_interface_command_handlers,
.transports = stlink_transports, .transports = stlink_transports,
.init = stlink_interface_init, .init = stlink_interface_init,
.quit = stlink_interface_quit, .quit = stlink_interface_quit,
.speed = stlink_interface_speed, .speed = stlink_interface_speed,
.speed_div = stlink_speed_div,
.khz = stlink_khz,
.execute_queue = stlink_interface_execute_queue, .execute_queue = stlink_interface_execute_queue,
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment