X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftransport%2Ftransport.h;h=140ef503d7e0f2e3e6ec0b98fed62ef6ae9e23ec;hp=28f3bd5446399f020381a88586380fad2677ce47;hb=70b15f989f09428a85d6e52d8a03dc902081eb01;hpb=d0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69 diff --git a/src/transport/transport.h b/src/transport/transport.h index 28f3bd5446..140ef503d7 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -16,8 +16,12 @@ * along with this program. If not, see . */ -#ifndef TRANSPORT_H -#define TRANSPORT_H +#ifndef OPENOCD_TRANSPORT_TRANSPORT_H +#define OPENOCD_TRANSPORT_TRANSPORT_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "helper/command.h" @@ -90,4 +94,16 @@ int allow_transports(struct command_context *ctx, const char * const *vector); bool transports_are_declared(void); +bool transport_is_jtag(void); +bool transport_is_swd(void); + +#if BUILD_HLADAPTER +bool transport_is_hla(void); +#else +static inline bool transport_is_hla(void) +{ + return false; +} #endif + +#endif /* OPENOCD_TRANSPORT_TRANSPORT_H */