//----------------------------------------------------------------------------- // Definitions of interest to most of the software for this project. // Jonathan Westhues, Mar 2006 //----------------------------------------------------------------------------- #ifndef __PROXMARK3_H #define __PROXMARK3_H // Might as well have the hardware-specific defines everywhere. #include #include #define LOW(x) PIO_OUTPUT_DATA_CLEAR = (1 << (x)) #define HIGH(x) PIO_OUTPUT_DATA_SET = (1 << (x)) #define SPI_FPGA_MODE 0 #define SPI_LCD_MODE 1 typedef unsigned long DWORD; typedef signed long SDWORD; typedef unsigned long long QWORD; typedef int BOOL; typedef unsigned char BYTE; typedef signed char SBYTE; typedef unsigned short WORD; typedef signed short SWORD; #define TRUE 1 #define FALSE 0 #include #define PACKED __attribute__((__packed__)) #define USB_D_PLUS_PULLUP_ON() { \ PIO_OUTPUT_DATA_SET = (1<