]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - include/common.h
1 //-----------------------------------------------------------------------------
2 // Hagen Fritsch - June 2010
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
8 //-----------------------------------------------------------------------------
9 // Interlib Definitions
10 //-----------------------------------------------------------------------------
22 #include <at91sam7s512.h>
23 typedef unsigned char byte_t
;
26 // 0 - no debug messages 1 - error messages 2 - all messages 4 - extended debug mode
28 #define MF_DBG_ERROR 1
30 #define MF_DBG_EXTENDED 4
31 extern int MF_DBGLEVEL
;
33 // reader voltage field detector
34 #define MF_MINFIELDV 4000
37 # define MIN(a, b) (((a) < (b)) ? (a) : (b))
41 # define MAX(a, b) (((a) > (b)) ? (a) : (b))
45 # define ABS(a) ( ((a)<0) ? -(a) : (a) )
47 #define RAMFUNC __attribute((long_call, section(".ramfunc")))