]> git.sur5r.net Git - openocd/commit
jtag/drivers cmsis-dap: do not limit speed so strictly
authorTomas Vanek <vanekt@fbl.cz>
Mon, 9 Jan 2017 16:06:52 +0000 (17:06 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Mon, 24 Apr 2017 05:28:28 +0000 (06:28 +0100)
commit44ad4fdcb026e513681f2d8c4c812652b13a389c
tree8f778246d61a429a166eabf3ecbc176e4b255562
parent73a94649606f31b46eb382dba6b3009035605c71
jtag/drivers cmsis-dap: do not limit speed so strictly

Adapter clock frequency is set by 32-bit number and most adapters
limit the highest speed safely. There is no reason to impose strict
limit of 5000 kHz if some adapters can do more.

While on it give informative error message in case of zero adapter_khz.

Change-Id: I45c9804678e24496ea769ea9ca6036701b04dde9
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3945
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/jtag/drivers/cmsis_dap_usb.c