]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
adapter: list supported transports beside adapter name
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 4 Jan 2025 17:41:41 +0000 (18:41 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 1 May 2025 15:25:31 +0000 (15:25 +0000)
commitda50873d5ebe558ee545c1a00f31df9e23f45456
tree5bc1640169503b90d6efe33be150bcda2e60c7ed
parentc3fae349692c7c2d0eac95a04da648ba95a558a0
adapter: list supported transports beside adapter name

Modify the command 'adapter list' to output the list of transports
supported by each adapter driver.
Drop the line number, as there is no real interest on it.
Format the output as a TCL dictionary indexed by the adapter name
and containing the transports in a TCL list. E.g:
dummy          { jtag }
ftdi           { jtag swd }

This format is easily handled by TCL scripts, e.g.:
dict get [adapter list] ftdi

Document the command output.

Change-Id: I69f73b71da2f1756866a63bc2c0ba33459a29063
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8691
Tested-by: jenkins
doc/openocd.texi
src/jtag/adapter.c