summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 06:55:00 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 06:55:00 +0000
commitea627cc8f6a9ae591bfe375544da3382726401d2 (patch)
tree598175bcc024f81ac03049ed8dcb407d0b642538
parent6b48a7714136e91084006b5961edf76e4a0ad9ee (diff)
downloadopenocd_libswd-ea627cc8f6a9ae591bfe375544da3382726401d2.tar.gz
openocd_libswd-ea627cc8f6a9ae591bfe375544da3382726401d2.tar.bz2
openocd_libswd-ea627cc8f6a9ae591bfe375544da3382726401d2.tar.xz
openocd_libswd-ea627cc8f6a9ae591bfe375544da3382726401d2.zip
used by upcoming commits
git-svn-id: svn://svn.berlios.de/openocd/trunk@1721 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/arm_jtag.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/target/arm_jtag.h b/src/target/arm_jtag.h
index c76ba4a8..10f8cbf8 100644
--- a/src/target/arm_jtag.h
+++ b/src/target/arm_jtag.h
@@ -56,5 +56,18 @@ int arm_jtag_buf_to_be32(u8 *in_buf, void *priv, struct scan_field_s *field);
int arm_jtag_buf_to_be16(u8 *in_buf, void *priv, struct scan_field_s *field);
int arm_jtag_buf_to_8(u8 *in_buf, void *priv, struct scan_field_s *field);
+
+/* use this as a static so we can inline it in -O3 and refer to it via a pointer */
+static __inline__ void arm7flip32(u8 *in)
+{
+ *((u32 *)in)=flip_u32(le_to_h_u32(in), 32);
+}
+
+static __inline__ void arm_le_to_h_u32(u8 *in)
+{
+ *((u32 *)in)=le_to_h_u32(in);
+}
+
+
#endif /* ARM_JTAG */