openocd/src/jtag
Antonio Borneo ac05f929ed swim: fix adapter speed handling
SWIM transport only supports two adapter speeds:
- "low speed"  equal to 363 kHz (8 MHz / 22)
- "high speed" equal to 800 kHz (8 MHz / 10)

Replace the previous convention that use "0" or "1" for "low" or
"high" speed with the effective speed in kHz.
Rework the implementation of stlink_speed_swim().
Set low speed in the stm8 config files, because only low speed is
permitted at debug connection; the previous code ignores the
initial value.

Change-Id: I2484c9419a2c554c59eb6b9216339393ab0b54f3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5529
Tested-by: jenkins
2020-05-24 21:31:21 +01:00
..
aice coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
drivers swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
hla adapter: expose HLA interface in struct adapter_driver 2020-05-24 21:29:11 +01:00
minidriver Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
minidummy coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
zy1000 coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
Makefile.am swim: abstract the transport in stm8 target 2020-05-24 21:29:42 +01:00
adapter.c jtag: adapter: rework adapter related commands 2020-01-29 05:33:39 +00:00
commands.c jtag: print an errmsg on using jtag API for non jtag transport 2020-01-14 11:38:23 +00:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c coding style: join consecutive string fragments 2020-05-09 14:40:40 +01:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h adapter: expose HLA interface in struct adapter_driver 2020-05-24 21:29:11 +01:00
interfaces.c jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h coding style: fix space around pointer's asterisk 2020-02-24 10:30:36 +00:00
minidriver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
startup.tcl drivers: xds110: Clean up command syntax and documentation 2020-03-24 17:17:45 +00:00
swd.h swd: get rid of jtag queue to assert/deassert srst 2020-01-14 11:15:12 +00:00
swim.c swim: abstract the transport in stm8 target 2020-05-24 21:29:42 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00