]> git.sur5r.net Git - openocd/blobdiff - src/target/target.h
esirisc: support eSi-RISC targets
[openocd] / src / target / target.h
index 5457f0abf63f2240f3b2a294b6312a10d2e899ed..d7961313887bcd5795b488c7e6a03d52ffbaa87c 100644 (file)
@@ -225,6 +225,13 @@ struct gdb_fileio_info {
        uint64_t param_4;
 };
 
+/** Returns a description of the endianness for the specified target. */
+static inline const char *target_endianness(struct target *target)
+{
+       return (target->endianness == TARGET_ENDIAN_UNKNOWN) ? "unknown" :
+                       (target->endianness == TARGET_BIG_ENDIAN) ? "big endian" : "little endian";
+}
+
 /** Returns the instance-specific name of the specified target. */
 static inline const char *target_name(struct target *target)
 {