]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - include/common.h
Merge pull request #926 from pwpiwi/fix_iso15693_fpga
[proxmark3-svn] / include / common.h
index 13daa86eb94b35085bb622ce757c5e292255cc61..89a6cd7eaaabe218b038d004e2bb8de665f96440 100644 (file)
@@ -9,13 +9,21 @@
 // Interlib Definitions
 //-----------------------------------------------------------------------------
 
-#ifndef __COMMON_H
-#define __COMMON_H
+#ifndef COMMON_H__
+#define COMMON_H__
 
-#include <stddef.h>
-#include <stdint.h>
-#include <stdbool.h>
-#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
+#ifndef ABS
+# define ABS(a) (((a) < 0) ? -(a) : (a))
+#endif
+
+#define RAMFUNC __attribute((long_call, section(".ramfunc")))
+
 #endif
Impressum, Datenschutz