diff --git a/armsrc/LCD.c b/armsrc/LCD.c index 5a7e5220..f37aa894 100644 --- a/armsrc/LCD.c +++ b/armsrc/LCD.c @@ -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 "apps.h" #include "LCD.h" diff --git a/armsrc/LCD.h b/armsrc/LCD.h index 7c79fa0a..5661f678 100644 --- a/armsrc/LCD.h +++ b/armsrc/LCD.h @@ -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 #define __LCD_H diff --git a/armsrc/Makefile b/armsrc/Makefile index 967bf097..045e1fba 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -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 +#----------------------------------------------------------------------------- APP_INCLUDES = apps.h diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 62f13fd4..fd1aa590 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -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 // executes. -// Jonathan Westhues, Mar 2006 -// Edits by Gerhard de Koning Gans, Sep 2007 (##) //----------------------------------------------------------------------------- #include "proxmark3.h" diff --git a/armsrc/apps.h b/armsrc/apps.h index 8e4b9bfa..2245ecb8 100644 --- a/armsrc/apps.h +++ b/armsrc/apps.h @@ -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. -// Jonathan Westhues, Aug 2005 -// Added ISO14443-A support by Gerhard de Koning Gans, April 2008 //----------------------------------------------------------------------------- #ifndef __APPS_H diff --git a/armsrc/fonts.c b/armsrc/fonts.c index 78c2654d..d79a61d8 100644 --- a/armsrc/fonts.c +++ b/armsrc/fonts.c @@ -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] = { {0x06,0x08,0x08,0x00,0x00,0x00,0x00,0x00}, // columns, rows, bytes per char {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // space diff --git a/armsrc/fonts.h b/armsrc/fonts.h index 40187cfe..000be07a 100644 --- a/armsrc/fonts.h +++ b/armsrc/fonts.h @@ -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 #define __FONTS_H diff --git a/armsrc/fpgaloader.c b/armsrc/fpgaloader.c index 50a6521d..caf87ba9 100644 --- a/armsrc/fpgaloader.c +++ b/armsrc/fpgaloader.c @@ -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 // mode once it is configured. -// -// Jonathan Westhues, April 2006 //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "apps.h" #include "util.h" diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 875eba2a..15daa25e 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -1,11 +1,15 @@ -/* - * Hitag2 emulation - * - * Contains state and functions for an emulated Hitag2 tag. Offers an entry - * point to handle commands, needs a callback to send response. - * - * (c) 2009 Henryk Plötz - */ +//----------------------------------------------------------------------------- +// (c) 2009 Henryk Plötz +// +// 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 +// +// 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 "apps.h" diff --git a/armsrc/hitag2.h b/armsrc/hitag2.h index 51d0514e..7606e2ce 100644 --- a/armsrc/hitag2.h +++ b/armsrc/hitag2.h @@ -1,8 +1,12 @@ -/* - * Hitag2 emulation public interface - * - * (c) 2009 Henryk Plötz - */ +//----------------------------------------------------------------------------- +// (c) 2009 Henryk Plötz +// +// 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 #define __HITAG2_H diff --git a/armsrc/iso14443.c b/armsrc/iso14443.c index f50d7cb9..92623f11 100644 --- a/armsrc/iso14443.c +++ b/armsrc/iso14443.c @@ -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 // the `fake tag' modes. At the moment only the Type B modulation is // supported. -// Jonathan Westhues, split Nov 2006 //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "apps.h" #include "util.h" diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index e60f3198..2e91d263 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -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. -// -// Gerhard de Koning Gans - May 2008 //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "apps.h" #include "util.h" diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index 31c13e95..c286d634 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -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 // the `fake tag' modes, but at the moment I've implemented only the reader // stuff, and that barely. -// Jonathan Westhues, split Nov 2006 - -// Modified by Greg Jones, Jan 2009 to perform modulation onboard in arm rather than on PC +// Modified to perform modulation onboard in arm rather than on PC // Also added additional reader commands (SELECT, READ etc.) - //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "util.h" #include "apps.h" diff --git a/armsrc/legicrf.c b/armsrc/legicrf.c index b3ac89bd..c785542d 100644 --- a/armsrc/legicrf.c +++ b/armsrc/legicrf.c @@ -1,8 +1,12 @@ -/* - * LEGIC RF simulation code - * - * (c) 2009 Henryk Plötz - */ +//----------------------------------------------------------------------------- +// (c) 2009 Henryk Plötz +// +// 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 "apps.h" diff --git a/armsrc/legicrf.h b/armsrc/legicrf.h index 16c6ce6a..4f3d76c2 100644 --- a/armsrc/legicrf.h +++ b/armsrc/legicrf.h @@ -1,8 +1,12 @@ -/* - * LEGIC RF emulation public interface - * - * (c) 2009 Henryk Plötz - */ +//----------------------------------------------------------------------------- +// (c) 2009 Henryk Plötz +// +// 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 #define __LEGICRF_H diff --git a/armsrc/lfops.c b/armsrc/lfops.c index dcc9e54d..7127bfdc 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -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. // Tags supported here so far are Texas Instruments (TI), HID // Also routines for raw mode reading/simulating of LF waveform -// //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "apps.h" #include "util.h" diff --git a/armsrc/printf.h b/armsrc/printf.h index b1d613c1..c6059922 100644 --- a/armsrc/printf.h +++ b/armsrc/printf.h @@ -1,3 +1,13 @@ +//----------------------------------------------------------------------------- +// Copyright (C) 2010 Hector Martin "marcan" +// +// 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 #define __PRINTF_H diff --git a/armsrc/start.c b/armsrc/start.c index 6d2b4837..d7332bda 100644 --- a/armsrc/start.c +++ b/armsrc/start.c @@ -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 // with the linker script. -// Jonathan Westhues, Mar 2006 //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "apps.h" diff --git a/armsrc/stdint.h b/armsrc/stdint.h index 8a7cb008..86f5db8c 100644 --- a/armsrc/stdint.h +++ b/armsrc/stdint.h @@ -1,6 +1,12 @@ -/* - * Replacement stdint.h because GCC doesn't come with it yet (C99) - */ +//----------------------------------------------------------------------------- +// Copyright (C) 2010 Hector Martin "marcan" +// +// 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 #define __STDINT_H diff --git a/armsrc/string.c b/armsrc/string.c index a3d3c049..4e66c95b 100644 --- a/armsrc/string.c +++ b/armsrc/string.c @@ -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 diff --git a/armsrc/string.h b/armsrc/string.h index 0a683293..6c380e5b 100644 --- a/armsrc/string.h +++ b/armsrc/string.h @@ -1,3 +1,14 @@ +//----------------------------------------------------------------------------- +// Jonathan Westhues, Aug 2005 +// Copyright (C) 2010 Hector Martin "marcan" +// +// 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 #define __STRING_H diff --git a/armsrc/util.c b/armsrc/util.c index 7a2895cf..5a8cfeec 100644 --- a/armsrc/util.c +++ b/armsrc/util.c @@ -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. -// Jonathan Westhues, Sept 2005 //----------------------------------------------------------------------------- + #include "proxmark3.h" #include "util.h" #include "string.h" diff --git a/armsrc/util.h b/armsrc/util.h index 0af673cc..1f4a8174 100644 --- a/armsrc/util.h +++ b/armsrc/util.h @@ -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 #define __UTIL_H diff --git a/bootrom/Makefile b/bootrom/Makefile index f6b16ba3..a3374b0c 100644 --- a/bootrom/Makefile +++ b/bootrom/Makefile @@ -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 +#----------------------------------------------------------------------------- # DO NOT use thumb mode in the phase 1 bootloader since that generates a section with glue code ARMSRC = fromflash.c diff --git a/bootrom/bootrom.c b/bootrom/bootrom.c index 04bc14be..592f1a2f 100644 --- a/bootrom/bootrom.c +++ b/bootrom/bootrom.c @@ -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 struct common_area common_area __attribute__((section(".commonarea"))); diff --git a/bootrom/flash-reset.s b/bootrom/flash-reset.s index 5e6d0375..8b58636f 100644 --- a/bootrom/flash-reset.s +++ b/bootrom/flash-reset.s @@ -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 .section .startup,"ax" diff --git a/bootrom/fromflash.c b/bootrom/fromflash.c index cf754544..81501fd0 100644 --- a/bootrom/fromflash.c +++ b/bootrom/fromflash.c @@ -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 extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__; diff --git a/bootrom/ldscript-flash b/bootrom/ldscript-flash index 0c637113..ba6384c5 100644 --- a/bootrom/ldscript-flash +++ b/bootrom/ldscript-flash @@ -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 ENTRY(flashstart) diff --git a/bootrom/ram-reset.s b/bootrom/ram-reset.s index 3dd77a89..34c950f6 100644 --- a/bootrom/ram-reset.s +++ b/bootrom/ram-reset.s @@ -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 .section .startphase2,"ax" diff --git a/bootrom/stdint.h b/bootrom/stdint.h index 8a7cb008..86f5db8c 100644 --- a/bootrom/stdint.h +++ b/bootrom/stdint.h @@ -1,6 +1,12 @@ -/* - * Replacement stdint.h because GCC doesn't come with it yet (C99) - */ +//----------------------------------------------------------------------------- +// Copyright (C) 2010 Hector Martin "marcan" +// +// 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 #define __STDINT_H diff --git a/common/Makefile.common b/common/Makefile.common index e2934792..3dbb55c0 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -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 # with as much common code for both environments as possible. # Following is a short OS detection to set up variables, all the diff --git a/common/crc.c b/common/crc.c index 817272eb..90d57afa 100644 --- a/common/crc.c +++ b/common/crc.c @@ -1,9 +1,10 @@ -/* - * crc.c - * - * Generic CRC calculation code. - * - */ +//----------------------------------------------------------------------------- +// 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. +//----------------------------------------------------------------------------- +// Generic CRC calculation code. +//----------------------------------------------------------------------------- #include "crc.h" diff --git a/common/crc16.c b/common/crc16.c index 4225ceb1..d181bb2a 100644 --- a/common/crc16.c +++ b/common/crc16.c @@ -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" unsigned short update_crc16( unsigned short crc, unsigned char c ) diff --git a/common/crc16.h b/common/crc16.h index b7e2824c..055a60bc 100644 --- a/common/crc16.h +++ b/common/crc16.h @@ -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); diff --git a/common/iso14443crc.c b/common/iso14443crc.c index f91b3ce1..b5ffc92d 100644 --- a/common/iso14443crc.c +++ b/common/iso14443crc.c @@ -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" static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc) diff --git a/common/iso14443crc.h b/common/iso14443crc.h index a435d09c..91c6ae1e 100644 --- a/common/iso14443crc.h +++ b/common/iso14443crc.h @@ -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) diff --git a/common/ldscript.common b/common/ldscript.common index ea6fe83b..e149b452 100644 --- a/common/ldscript.common +++ b/common/ldscript.common @@ -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 */ MEMORY { diff --git a/common/legic_prng.c b/common/legic_prng.c index ee8e0dc7..1d28fdb7 100644 --- a/common/legic_prng.c +++ b/common/legic_prng.c @@ -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" -/* legic's obfuscation function */ struct lfsr { uint8_t a; diff --git a/common/usb.c b/common/usb.c index 6c5207d6..1c296115 100644 --- a/common/usb.c +++ b/common/usb.c @@ -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 +// +// 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 #define min(a, b) (((a) > (b)) ? (b) : (a)) diff --git a/include/config_gpio.h b/include/config_gpio.h index f9681e36..5307c220 100644 --- a/include/config_gpio.h +++ b/include/config_gpio.h @@ -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 #define __CONFIG_GPIO_H diff --git a/include/crc.h b/include/crc.h index afdf0816..8e68f3b3 100644 --- a/include/crc.h +++ b/include/crc.h @@ -1,9 +1,10 @@ -/* - * crc.h - * - * Generic CRC calculation code. - * - */ +//----------------------------------------------------------------------------- +// 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. +//----------------------------------------------------------------------------- +// Generic CRC calculation code. +//----------------------------------------------------------------------------- #ifndef __CRC_H #define __CRC_H diff --git a/include/legic_prng.h b/include/legic_prng.h index 87354dff..887d7d91 100644 --- a/include/legic_prng.h +++ b/include/legic_prng.h @@ -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 #define __LEGIC_PRNG_H diff --git a/include/proxmark3.h b/include/proxmark3.h index fb1c6db1..97e6bade 100644 --- a/include/proxmark3.h +++ b/include/proxmark3.h @@ -1,6 +1,11 @@ //----------------------------------------------------------------------------- -// Definitions of interest to most of the software for this project. // 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 diff --git a/include/usb_cmd.h b/include/usb_cmd.h index b5608119..8c253880 100644 --- a/include/usb_cmd.h +++ b/include/usb_cmd.h @@ -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 // own protocol. -// Jonathan Westhues, Mar 2006 -// Edits by Gerhard de Koning Gans, Sep 2007 //----------------------------------------------------------------------------- #ifndef __USB_CMD_H