diff options
author | mifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-19 14:51:51 +0000 |
---|---|---|
committer | mifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-19 14:51:51 +0000 |
commit | 486799e65b1d2496056e898c80e659cdf25a0b6a (patch) | |
tree | 17340f2fde77131453546364a89dc749d12a669a /src | |
parent | f1bca5898caa8c81bff9383f1649d3454f6ec195 (diff) | |
download | openocd+libswd-486799e65b1d2496056e898c80e659cdf25a0b6a.tar.gz openocd+libswd-486799e65b1d2496056e898c80e659cdf25a0b6a.tar.bz2 openocd+libswd-486799e65b1d2496056e898c80e659cdf25a0b6a.tar.xz openocd+libswd-486799e65b1d2496056e898c80e659cdf25a0b6a.zip |
Added functionality to support jtag_khz for the jlink.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1470 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/jlink.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 5348d230..0c5f40dd 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -79,6 +79,7 @@ static u8 usb_emu_result_buffer[JLINK_EMU_RESULT_BUFFER_SIZE]; /* External interface functions */ int jlink_execute_queue(void); int jlink_speed(int speed); +int jlink_speed_div(int speed, int* khz); int jlink_khz(int khz, int *jtag_speed); int jlink_register_commands(struct command_context_s *cmd_ctx); int jlink_init(void); @@ -134,6 +135,7 @@ jtag_interface_t jlink_interface = .name = "jlink", .execute_queue = jlink_execute_queue, .speed = jlink_speed, + .speed_div = jlink_speed_div, .khz = jlink_khz, .register_commands = jlink_register_commands, .init = jlink_init, @@ -270,6 +272,13 @@ int jlink_speed(int speed) return ERROR_OK; } +int jlink_speed_div(int speed, int* khz) +{ + *khz = speed; + + return ERROR_OK; +} + int jlink_khz(int khz, int *jtag_speed) { *jtag_speed = khz; |