diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2021-04-06 18:55:22 +0200 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2021-04-18 21:21:44 +0100 |
commit | ff755a575ebf0218c2eb8745eff8050f8f02a53d (patch) | |
tree | a2f6e5d80242905fabaf829435c7695f3899596e /src/rtos/rtos.h | |
parent | 80970811f4558b610792b01d37740be8af4258f6 (diff) | |
download | riscv-openocd-ff755a575ebf0218c2eb8745eff8050f8f02a53d.zip riscv-openocd-ff755a575ebf0218c2eb8745eff8050f8f02a53d.tar.gz riscv-openocd-ff755a575ebf0218c2eb8745eff8050f8f02a53d.tar.bz2 |
drivers/cmsis-dap: flush read
Some CMSIS-DAP adapters keep buffered packets over
USB close/open so we need to flush up to 64 old packets
to be sure all buffers are empty.
Flush just after cmsis_dap_open() and in the case of command mismatch.
Change-Id: If21a118639e64d90635b4ecf81013d29a7b9f78d
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/6135
Tested-by: jenkins
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
Diffstat (limited to 'src/rtos/rtos.h')
0 files changed, 0 insertions, 0 deletions