stlink: expose ap number and csw in memory r/w
commit6f914cd8990435eafc85f8fc75fbecd7fbb96214
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 5 Feb 2020 15:20:37 +0000 (5 16:20 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 5 Nov 2021 22:41:26 +0000 (5 22:41 +0000)
tree1b108931008d072bbc5a37d4cf1f171b7def235d
parent76d109523199aa44bb36627ff46d91719566086a
stlink: expose ap number and csw in memory r/w

Recent versions of stlink firmware allow accessing access port
other than zero and setting the CSW.

Modify the internal API to provide ap_num and csw.
There is no interest to modify HLA to use ap_num and csw, so set
and use some backward compatible defaults.

Change-Id: I3f6dfc6c670d19467d9f5e717c6c956db6faf7f3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6602
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
src/jtag/drivers/stlink_usb.c