X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/902cb3c00b49535f0de9a3b6d5ba0c54260ccac1..27eabcdccb0179e8ab003e496a46fb1621f08701:/include/common.h?ds=sidebyside

diff --git a/include/common.h b/include/common.h
index 13daa86e..feed109c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -18,4 +18,13 @@
 #include <at91sam7s512.h>
 typedef unsigned char byte_t;
 
+#ifndef MIN
+# define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#endif
+#ifndef MAX
+# define MAX(a, b) (((a) > (b)) ? (a) : (b))
+#endif
+
+#define RAMFUNC __attribute((long_call, section(".ramfunc")))
+
 #endif