summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-16 03:29:30 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-16 09:58:11 -0800
commitdc1685ca25567fe75c8d50c825fb0303fbb66fac (patch)
treee51e63fe1e40d3c60673f57784f88c43277f5eba /src/jtag/jtag.h
parent10cce4a5fe85bfd680bc338c900b0033d7174b6a (diff)
downloadopenocd_libswd-dc1685ca25567fe75c8d50c825fb0303fbb66fac.tar.gz
openocd_libswd-dc1685ca25567fe75c8d50c825fb0303fbb66fac.tar.bz2
openocd_libswd-dc1685ca25567fe75c8d50c825fb0303fbb66fac.tar.xz
openocd_libswd-dc1685ca25567fe75c8d50c825fb0303fbb66fac.zip
move ARRAY_SIZE macro to types.h
The ARRAY_SIZE macro was defined in several target files, so move it to types.h. This patch also removes two other identical macros: DIM (from jtag.h) and asizeof (from arm11.h).
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index ee3ca32b..d4fafa3b 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -38,14 +38,6 @@
#define DEBUG_JTAG_IOZ 64
#endif
-/*-----<Macros>--------------------------------------------------*/
-
-/**
- * When given an array, compute its DIMension; in other words, the
- * number of elements in the array
- */
-#define DIM(x) (sizeof(x)/sizeof((x)[0]))
-
/*-----</Macros>-------------------------------------------------*/
/**