Add license headers to armsrc/bootrom/common stuff

I have kept whatever copyright notices exist. Please add your own
copyright notice if you have made any nontrivial changes or additions to
the code. There are several files without any attribution, currently.
This commit is contained in:
marcansoft 2010-02-21 00:12:52 +00:00
commit bd20f8f478
44 changed files with 359 additions and 68 deletions

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LCD code
//-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"
#include "LCD.h" #include "LCD.h"

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LCD code
//-----------------------------------------------------------------------------
#ifndef __LCD_H #ifndef __LCD_H
#define __LCD_H #define __LCD_H

View file

@ -1,4 +1,10 @@
#-----------------------------------------------------------------------------
# This code is licensed to you under the terms of the GNU GPL, version 2 or,
# at your option, any later version. See the LICENSE.txt file for the text of
# the license.
#-----------------------------------------------------------------------------
# Makefile for armsrc, see ../common/Makefile.common for common settings # Makefile for armsrc, see ../common/Makefile.common for common settings
#-----------------------------------------------------------------------------
APP_INCLUDES = apps.h APP_INCLUDES = apps.h

View file

@ -1,8 +1,13 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, Mar 2006
// Edits by Gerhard de Koning Gans, Sep 2007 (##)
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// The main application code. This is the first thing called after start.c // The main application code. This is the first thing called after start.c
// executes. // executes.
// Jonathan Westhues, Mar 2006
// Edits by Gerhard de Koning Gans, Sep 2007 (##)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"

View file

@ -1,7 +1,12 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, Aug 2005
// Gerhard de Koning Gans, April 2008
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Definitions internal to the app source. // Definitions internal to the app source.
// Jonathan Westhues, Aug 2005
// Added ISO14443-A support by Gerhard de Koning Gans, April 2008
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#ifndef __APPS_H #ifndef __APPS_H

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Fonts for the LCD
//-----------------------------------------------------------------------------
const char FONT6x8[97][8] = { const char FONT6x8[97][8] = {
{0x06,0x08,0x08,0x00,0x00,0x00,0x00,0x00}, // columns, rows, bytes per char {0x06,0x08,0x08,0x00,0x00,0x00,0x00,0x00}, // columns, rows, bytes per char
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // space {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // space

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Fonts for the LCD
//-----------------------------------------------------------------------------
#ifndef __FONTS_H #ifndef __FONTS_H
#define __FONTS_H #define __FONTS_H

View file

@ -1,9 +1,14 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, April 2006
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Routines to load the FPGA image, and then to configure the FPGA's major // Routines to load the FPGA image, and then to configure the FPGA's major
// mode once it is configured. // mode once it is configured.
//
// Jonathan Westhues, April 2006
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"
#include "util.h" #include "util.h"

View file

@ -1,11 +1,15 @@
/* //-----------------------------------------------------------------------------
* Hitag2 emulation // (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
* //
* Contains state and functions for an emulated Hitag2 tag. Offers an entry // This code is licensed to you under the terms of the GNU GPL, version 2 or,
* point to handle commands, needs a callback to send response. // at your option, any later version. See the LICENSE.txt file for the text of
* // the license.
* (c) 2009 Henryk Plötz <henryk@ploetzli.ch> //-----------------------------------------------------------------------------
*/ // Hitag2 emulation
//
// Contains state and functions for an emulated Hitag2 tag. Offers an entry
// point to handle commands, needs a callback to send response.
//-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"

View file

@ -1,8 +1,12 @@
/* //-----------------------------------------------------------------------------
* Hitag2 emulation public interface // (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
* //
* (c) 2009 Henryk Plötz <henryk@ploetzli.ch> // This code is licensed to you under the terms of the GNU GPL, version 2 or,
*/ // at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Hitag2 emulation public interface
//-----------------------------------------------------------------------------
#ifndef __HITAG2_H #ifndef __HITAG2_H
#define __HITAG2_H #define __HITAG2_H

View file

@ -1,9 +1,15 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, split Nov 2006
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Routines to support ISO 14443. This includes both the reader software and // Routines to support ISO 14443. This includes both the reader software and
// the `fake tag' modes. At the moment only the Type B modulation is // the `fake tag' modes. At the moment only the Type B modulation is
// supported. // supported.
// Jonathan Westhues, split Nov 2006
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"
#include "util.h" #include "util.h"

View file

@ -1,8 +1,13 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Gerhard de Koning Gans - May 2008
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Routines to support ISO 14443 type A. // Routines to support ISO 14443 type A.
//
// Gerhard de Koning Gans - May 2008
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"
#include "util.h" #include "util.h"

View file

@ -1,13 +1,18 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, split Nov 2006
// Modified by Greg Jones, Jan 2009
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Routines to support ISO 15693. This includes both the reader software and // Routines to support ISO 15693. This includes both the reader software and
// the `fake tag' modes, but at the moment I've implemented only the reader // the `fake tag' modes, but at the moment I've implemented only the reader
// stuff, and that barely. // stuff, and that barely.
// Jonathan Westhues, split Nov 2006 // Modified to perform modulation onboard in arm rather than on PC
// Modified by Greg Jones, Jan 2009 to perform modulation onboard in arm rather than on PC
// Also added additional reader commands (SELECT, READ etc.) // Also added additional reader commands (SELECT, READ etc.)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "util.h" #include "util.h"
#include "apps.h" #include "apps.h"

View file

@ -1,8 +1,12 @@
/* //-----------------------------------------------------------------------------
* LEGIC RF simulation code // (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
* //
* (c) 2009 Henryk Plötz <henryk@ploetzli.ch> // This code is licensed to you under the terms of the GNU GPL, version 2 or,
*/ // at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LEGIC RF simulation code
//-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"

View file

@ -1,8 +1,12 @@
/* //-----------------------------------------------------------------------------
* LEGIC RF emulation public interface // (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
* //
* (c) 2009 Henryk Plötz <henryk@ploetzli.ch> // This code is licensed to you under the terms of the GNU GPL, version 2 or,
*/ // at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LEGIC RF emulation public interface
//-----------------------------------------------------------------------------
#ifndef __LEGICRF_H #ifndef __LEGICRF_H
#define __LEGICRF_H #define __LEGICRF_H

View file

@ -1,9 +1,13 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Miscellaneous routines for low frequency tag operations. // Miscellaneous routines for low frequency tag operations.
// Tags supported here so far are Texas Instruments (TI), HID // Tags supported here so far are Texas Instruments (TI), HID
// Also routines for raw mode reading/simulating of LF waveform // Also routines for raw mode reading/simulating of LF waveform
//
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"
#include "util.h" #include "util.h"

View file

@ -1,3 +1,13 @@
//-----------------------------------------------------------------------------
// Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Common *printf() functions
//-----------------------------------------------------------------------------
#ifndef __PRINTF_H #ifndef __PRINTF_H
#define __PRINTF_H #define __PRINTF_H

View file

@ -1,8 +1,14 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, Mar 2006
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Just vector to AppMain(). This is in its own file so that I can place it // Just vector to AppMain(). This is in its own file so that I can place it
// with the linker script. // with the linker script.
// Jonathan Westhues, Mar 2006
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "apps.h" #include "apps.h"

View file

@ -1,6 +1,12 @@
/* //-----------------------------------------------------------------------------
* Replacement stdint.h because GCC doesn't come with it yet (C99) // Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
*/ //
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Replacement stdint.h because GCC doesn't come with it yet (C99)
//-----------------------------------------------------------------------------
#ifndef __STDINT_H #ifndef __STDINT_H
#define __STDINT_H #define __STDINT_H

View file

@ -1,4 +1,13 @@
/* Implementations of the common string.h functions */ //-----------------------------------------------------------------------------
// Jonathan Westhues, Sept 2005
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Common string.h functions
//-----------------------------------------------------------------------------
#include "string.h" #include "string.h"
#include <stdint.h> #include <stdint.h>

View file

@ -1,3 +1,14 @@
//-----------------------------------------------------------------------------
// Jonathan Westhues, Aug 2005
// Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Common string.h functions
//-----------------------------------------------------------------------------
#ifndef __STRING_H #ifndef __STRING_H
#define __STRING_H #define __STRING_H

View file

@ -1,7 +1,13 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, Sept 2005
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Utility functions used in many places, not specific to any piece of code. // Utility functions used in many places, not specific to any piece of code.
// Jonathan Westhues, Sept 2005
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "proxmark3.h" #include "proxmark3.h"
#include "util.h" #include "util.h"
#include "string.h" #include "string.h"

View file

@ -1,3 +1,13 @@
//-----------------------------------------------------------------------------
// Jonathan Westhues, Aug 2005
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Utility functions used in many places, not specific to any piece of code.
//-----------------------------------------------------------------------------
#ifndef __UTIL_H #ifndef __UTIL_H
#define __UTIL_H #define __UTIL_H

View file

@ -1,4 +1,10 @@
#-----------------------------------------------------------------------------
# This code is licensed to you under the terms of the GNU GPL, version 2 or,
# at your option, any later version. See the LICENSE.txt file for the text of
# the license.
#-----------------------------------------------------------------------------
# Makefile for bootrom, see ../common/Makefile.common for common settings # Makefile for bootrom, see ../common/Makefile.common for common settings
#-----------------------------------------------------------------------------
# DO NOT use thumb mode in the phase 1 bootloader since that generates a section with glue code # DO NOT use thumb mode in the phase 1 bootloader since that generates a section with glue code
ARMSRC = fromflash.c ARMSRC = fromflash.c

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Main code for the bootloader
//-----------------------------------------------------------------------------
#include <proxmark3.h> #include <proxmark3.h>
struct common_area common_area __attribute__((section(".commonarea"))); struct common_area common_area __attribute__((section(".commonarea")));

View file

@ -1,3 +1,11 @@
@-----------------------------------------------------------------------------
@ This code is licensed to you under the terms of the GNU GPL, version 2 or,
@ at your option, any later version. See the LICENSE.txt file for the text of
@ the license.
@-----------------------------------------------------------------------------
@ Reset vector for running from FLASH
@-----------------------------------------------------------------------------
.extern CopyBootToRAM .extern CopyBootToRAM
.section .startup,"ax" .section .startup,"ax"

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Helper function for launching the bootloader from FLASH
//-----------------------------------------------------------------------------
#include <proxmark3.h> #include <proxmark3.h>
extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__; extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__;

View file

@ -1,3 +1,13 @@
/*
-----------------------------------------------------------------------------
This code is licensed to you under the terms of the GNU GPL, version 2 or,
at your option, any later version. See the LICENSE.txt file for the text of
the license.
-----------------------------------------------------------------------------
Bootrom linker script
-----------------------------------------------------------------------------
*/
INCLUDE ../common/ldscript.common INCLUDE ../common/ldscript.common
ENTRY(flashstart) ENTRY(flashstart)

View file

@ -1,3 +1,11 @@
@-----------------------------------------------------------------------------
@ This code is licensed to you under the terms of the GNU GPL, version 2 or,
@ at your option, any later version. See the LICENSE.txt file for the text of
@ the license.
@-----------------------------------------------------------------------------
@ RAM reset vector for relaunching the bootloader
@-----------------------------------------------------------------------------
.extern BootROM .extern BootROM
.section .startphase2,"ax" .section .startphase2,"ax"

View file

@ -1,6 +1,12 @@
/* //-----------------------------------------------------------------------------
* Replacement stdint.h because GCC doesn't come with it yet (C99) // Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
*/ //
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Replacement stdint.h because GCC doesn't come with it yet (C99)
//-----------------------------------------------------------------------------
#ifndef __STDINT_H #ifndef __STDINT_H
#define __STDINT_H #define __STDINT_H

View file

@ -1,3 +1,11 @@
#-----------------------------------------------------------------------------
# This code is licensed to you under the terms of the GNU GPL, version 2 or,
# at your option, any later version. See the LICENSE.txt file for the text of
# the license.
#-----------------------------------------------------------------------------
# Common makefile functions for all platforms
#-----------------------------------------------------------------------------
# This new makefile replaces the previous Makefile/Makefile.linux # This new makefile replaces the previous Makefile/Makefile.linux
# with as much common code for both environments as possible. # with as much common code for both environments as possible.
# Following is a short OS detection to set up variables, all the # Following is a short OS detection to set up variables, all the

View file

@ -1,9 +1,10 @@
/* //-----------------------------------------------------------------------------
* crc.c // This code is licensed to you under the terms of the GNU GPL, version 2 or,
* // at your option, any later version. See the LICENSE.txt file for the text of
* Generic CRC calculation code. // the license.
* //-----------------------------------------------------------------------------
*/ // Generic CRC calculation code.
//-----------------------------------------------------------------------------
#include "crc.h" #include "crc.h"

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// CRC16
//-----------------------------------------------------------------------------
#include "crc16.h" #include "crc16.h"
unsigned short update_crc16( unsigned short crc, unsigned char c ) unsigned short update_crc16( unsigned short crc, unsigned char c )

View file

@ -1,5 +1,13 @@
#ifndef CRC16_H__ //-----------------------------------------------------------------------------
#define CRC16_H__ // This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// CRC16
//-----------------------------------------------------------------------------
#ifndef __CRC16_H
#define __CRC16_H
unsigned short update_crc16(unsigned short crc, unsigned char c); unsigned short update_crc16(unsigned short crc, unsigned char c);

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// ISO14443 CRC calculation code.
//-----------------------------------------------------------------------------
#include "iso14443crc.h" #include "iso14443crc.h"
static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc) static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc)

View file

@ -1,5 +1,13 @@
#ifndef ISO14443CRC_H__ //-----------------------------------------------------------------------------
#define ISO14443CRC_H__ // This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// ISO14443 CRC calculation code.
//-----------------------------------------------------------------------------
#ifndef __ISO14443CRC_H
#define __ISO14443CRC_H
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Routines to compute the CRCs (two different flavours, just for confusion) // Routines to compute the CRCs (two different flavours, just for confusion)

View file

@ -1,3 +1,13 @@
/*
-----------------------------------------------------------------------------
This code is licensed to you under the terms of the GNU GPL, version 2 or,
at your option, any later version. See the LICENSE.txt file for the text of
the license.
-----------------------------------------------------------------------------
Common linker script
-----------------------------------------------------------------------------
*/
/* AT91SAM7S256 has 256k Flash and 64k RAM */ /* AT91SAM7S256 has 256k Flash and 64k RAM */
MEMORY MEMORY
{ {

View file

@ -1,5 +1,12 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LEFIC's obfuscation function
//-----------------------------------------------------------------------------
#include "legic_prng.h" #include "legic_prng.h"
/* legic's obfuscation function */
struct lfsr { struct lfsr {
uint8_t a; uint8_t a;

View file

@ -1,8 +1,13 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// My USB driver. This has to be common, because it exists in both the
// bootrom and the application.
// Jonathan Westhues, split Aug 14 2005 // Jonathan Westhues, split Aug 14 2005
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// The common USB driver used for both the bootloader and the application.
//-----------------------------------------------------------------------------
#include <proxmark3.h> #include <proxmark3.h>
#define min(a, b) (((a) > (b)) ? (b) : (a)) #define min(a, b) (((a) > (b)) ? (b) : (a))

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// GPIO pin mapping for the Proxmark3
//-----------------------------------------------------------------------------
#ifndef __CONFIG_GPIO_H #ifndef __CONFIG_GPIO_H
#define __CONFIG_GPIO_H #define __CONFIG_GPIO_H

View file

@ -1,9 +1,10 @@
/* //-----------------------------------------------------------------------------
* crc.h // This code is licensed to you under the terms of the GNU GPL, version 2 or,
* // at your option, any later version. See the LICENSE.txt file for the text of
* Generic CRC calculation code. // the license.
* //-----------------------------------------------------------------------------
*/ // Generic CRC calculation code.
//-----------------------------------------------------------------------------
#ifndef __CRC_H #ifndef __CRC_H
#define __CRC_H #define __CRC_H

View file

@ -1,3 +1,11 @@
//-----------------------------------------------------------------------------
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// LEFIC's obfuscation function
//-----------------------------------------------------------------------------
#ifndef __LEGIC_PRNG_H #ifndef __LEGIC_PRNG_H
#define __LEGIC_PRNG_H #define __LEGIC_PRNG_H

View file

@ -1,6 +1,11 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Definitions of interest to most of the software for this project.
// Jonathan Westhues, Mar 2006 // Jonathan Westhues, Mar 2006
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Hardware and interface definitions
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#ifndef __PROXMARK3_H #ifndef __PROXMARK3_H

View file

@ -1,8 +1,13 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Jonathan Westhues, Mar 2006
// Edits by Gerhard de Koning Gans, Sep 2007
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Definitions for all the types of commands that may be sent over USB; our // Definitions for all the types of commands that may be sent over USB; our
// own protocol. // own protocol.
// Jonathan Westhues, Mar 2006
// Edits by Gerhard de Koning Gans, Sep 2007
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#ifndef __USB_CMD_H #ifndef __USB_CMD_H