target/arm_dap: check SWD DAP configuration
authorTomas Vanek <vanekt@fbl.cz>
Tue, 6 Apr 2021 20:30:52 +0000 (22:30 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 20 Nov 2021 14:48:26 +0000 (14:48 +0000)
commit8d9379c9bab8defe1ddb875352b432567d94f65b
tree4d995c6ab064dd807147205c60a66c40da3f8f40
parentd2033997871f8561d1406550c12508461f63de48
target/arm_dap: check SWD DAP configuration

Raise error if

* more than one plain SWD DAPs are defined

* plain and multidrop DAPs are mixed

* two multidrop DAPs have the same TARGETSEL value

Inspired by Graham Sanderson's http://review.openocd.org/4935

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