mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 18:47:24 -07:00
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:
parent
9ab7a6c755
commit
bd20f8f478
44 changed files with 359 additions and 68 deletions
|
@ -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
|
||||
|
|
13
common/crc.c
13
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"
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 <proxmark3.h>
|
||||
|
||||
#define min(a, b) (((a) > (b)) ? (b) : (a))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue