X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftransport%2Ftransport.h;h=e04f78063529996396b3f7a4a81d07b85d6ff762;hb=a8b436c511dc39e0785af4c9256b7723692ba60e;hp=28f3bd5446399f020381a88586380fad2677ce47;hpb=d0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69;p=openocd.git diff --git a/src/transport/transport.h b/src/transport/transport.h index 28f3bd5446..e04f780635 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" @@ -88,6 +92,19 @@ COMMAND_HELPER(transport_list_parse, char ***vector); 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); +bool transport_is_dapdirect_jtag(void); +bool transport_is_dapdirect_swd(void); +bool transport_is_swim(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 */