drivers/jlink: fix SWD speed config, and set it before sending anything
commit66e20117e8529bb0f37cf81302f1afebbe71d4b5
authorPaul Fertser <fercerpav@gmail.com>
Sat, 19 Jul 2014 12:48:09 +0000 (19 16:48 +0400)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 2 Aug 2014 13:53:59 +0000 (2 13:53 +0000)
tree186033a384eac6219ed4713a73070cf996b09b97
parent67332532194b16b99f0535a41b4179ca5df349b0
drivers/jlink: fix SWD speed config, and set it before sending anything

During the initialisation a driver might need to communicate with the
target (e.g. sending jtag2swd sequence), so when doing so it should
honour the user-specified speed.

Change-Id: If84fea6057fda9edcf2c0a653edfbab2500e3cdd
[andrew.smirnov@gmail.com: fix khz/hz confusion]
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2224
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/drivers/jlink.c