X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftransport%2Ftransport.h;h=140ef503d7e0f2e3e6ec0b98fed62ef6ae9e23ec;hb=6949b5393d9fb6511ddef13ce0bef1a147e7f962;hp=daf49604c5b9968c63c824151b122a8506a3aee2;hpb=c7384117c66e8f18896ca09ab8095d6da16bb1e5;p=openocd.git diff --git a/src/transport/transport.h b/src/transport/transport.h index daf49604c5..140ef503d7 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -13,12 +13,15 @@ * GNU General Public License for more details. * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * 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" @@ -91,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 */