target/adi_v5_swd: introduce swd_queue_dp_read/write_inner()
authorTomas Vanek <vanekt@fbl.cz>
Mon, 5 Apr 2021 03:57:46 +0000 (05:57 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 20 Nov 2021 14:45:35 +0000 (14:45 +0000)
commit81afe6e3fdb1253659d7d5a1be9f4f444c2c18d5
treeef499fac56b324121423ecc04a3e8a816fb1b25a
parent9dd39a33e6dbd9d95b5bcfde4b41c498841a27a1
target/adi_v5_swd: introduce swd_queue_dp_read/write_inner()

This is a preparatory change for swd multidrop, mostly refactoring.

Split swd_queue_dp_read/write() to inner and outer parts.
Use the inner parts in swd_queue_dp_bankselect(), swd_connect()
they do not need to check reconnect.
Use the outer parts exclusively in swd_dap_ops.

Rearrange the code to reduce forward declarations.

Change-Id: I47b7f0cb037e0032a267463f06ba02123ba96fe7
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6139
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
src/target/adi_v5_swd.c