openocd/src/jtag/drivers
Antonio Borneo 94dfa68647 stlink: reduce use of hla specific enum hl_transports
In the driver's code it's widely used the enum hl_transports for
any check concerning the current transport, even for the non-hla
transport dapdirect.
The driver already provides a stlink specific enum stlink_mode
that can be used in place of the hla one.

Replace the hla enum with the stlink one allover the code.
Introduce a hla specific wrapper stlink_usb_hl_open() to cope with
the only API that requires the hla specific enum.

The overall behaviour is not changed, with exception for a debug
message in stlink_usb_open() than now prints the numeric value of
stlink enum in place of the numeric value of the corresponding hla
one.

This change prepares the road for moving SWIM transport out of hla
by removing any reference to the macro HL_TRANSPORT_SWIM from the
stlink driver.

Change-Id: Ieeea34f312245a94bfc1333087afdb8eb9f77139
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5526
Tested-by: jenkins
2020-05-24 21:27:34 +01:00
..
libjaylink@f73ad5e667 libjaylink: Update to latest Git version 2019-10-19 13:27:29 +01:00
OpenULINK Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
usb_blaster coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
versaloon coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
amt_jtagaccel.c coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
arm-jtag-ew.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
at91rm9200.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
bcm2835gpio.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
bitbang.c bitbang: jtag-only drivers: switch to new reset API 2020-01-14 11:16:24 +00:00
bitbang.h bitbang: Fix FTBFS with GCC 10 2020-04-24 17:44:13 +01:00
bitq.c Convert DEBUG_JTAG_IO to LOG_DEBUG_IO 2019-06-04 21:48:39 +01:00
bitq.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
buspirate.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
cmsis_dap_usb.c coding style: remove useless return statement from void functions 2020-05-09 14:40:07 +01:00
driver.c jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
dummy.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
ep93xx.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
ft232r.c jtag/libusb_helper: permit adapters to compute their custom serials 2020-03-22 08:17:06 +00:00
ftdi.c ftdi: Report an error if no ftdi_vid_pid is specified 2020-04-24 17:40:07 +01:00
gw16012.c coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
imx_gpio.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
jlink.c coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
jtag_usb_common.c jtag/drivers/jtag_usb_common: fix typo 2019-06-13 12:39:09 +01:00
jtag_usb_common.h jtag: drivers: provide initial support for usb path filtering 2019-02-07 07:51:30 +00:00
jtag_vpi.c jtag_vpi: added an option to stop simulation on exit 2020-02-15 15:32:53 +00:00
kitprog.c coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
libusb_helper.c jtag/libusb_helper: permit adapters to compute their custom serials 2020-03-22 08:17:06 +00:00
libusb_helper.h jtag/libusb_helper: permit adapters to compute their custom serials 2020-03-22 08:17:06 +00:00
Makefile.am coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
Makefile.rlink Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
minidriver_imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
mpsse.c Add wall clock timeout warning to mpsse_flush() 2019-10-15 08:58:56 +01:00
mpsse.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
opendous.c coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
openjtag.c jtag/libusb_helper: permit adapters to compute their custom serials 2020-03-22 08:17:06 +00:00
osbdm.c jtag/libusb_helper: permit adapters to compute their custom serials 2020-03-22 08:17:06 +00:00
parport.c coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
presto.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
remote_bitbang.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
rlink_call.m4 coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_dtc_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_ep1_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_init.m4 Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
rlink_speed_table.c coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_st7.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
rlink.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rshim.c jtag/drivers: add debugging support for Mellanox BlueField SoC 2020-04-21 11:18:11 +01:00
stlink_usb.c stlink: reduce use of hla specific enum hl_transports 2020-05-24 21:27:34 +01:00
sysfsgpio.c coding style: remove useless return statement from void functions 2020-05-09 14:40:07 +01:00
ti_icdi_usb.c jtag: drivers: stlink: handle all versions with single config 2017-12-12 21:13:55 +00:00
ulink.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
usb_common.c jtag/drivers/usb_common: return oocd error values 2019-01-08 10:02:43 +00:00
usb_common.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
usbprog.c coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
vsllink.c coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
xds110.c coding style: remove useless return statement from void functions 2020-05-09 14:40:07 +01:00
xlnx-pcie-xvc.c jtag: drivers: xlnx-pcie-xvc: fix build on Linux pre v4.10 2020-02-06 20:22:49 +00:00