flash: use proper format with uint32_t
[fw/openocd] / src / transport / transport.h
index daf49604c5b9968c63c824151b122a8506a3aee2..809564e789b5c158bc3f93ea1fa42fe05ed927db 100644 (file)
  * 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 <http://www.gnu.org/licenses/>.
  */
 
-#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,19 @@ 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 */