Skip to content

Commit

Permalink
Add license headers to armsrc/bootrom/common stuff
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marcansoft committed Feb 21, 2010
1 parent 9ab7a6c commit bd20f8f
Show file tree
Hide file tree
Showing 44 changed files with 359 additions and 68 deletions.
8 changes: 8 additions & 0 deletions armsrc/LCD.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 8 additions & 0 deletions armsrc/LCD.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions armsrc/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
9 changes: 7 additions & 2 deletions armsrc/appmain.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
//-----------------------------------------------------------------------------
// 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 (##)
//
// 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.
//-----------------------------------------------------------------------------

#include "proxmark3.h"
Expand Down
9 changes: 7 additions & 2 deletions armsrc/apps.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
//-----------------------------------------------------------------------------
// Definitions internal to the app source.
// Jonathan Westhues, Aug 2005
// Added ISO14443-A support by Gerhard de Koning Gans, April 2008
// 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.
//-----------------------------------------------------------------------------

#ifndef __APPS_H
Expand Down
8 changes: 8 additions & 0 deletions armsrc/fonts.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions armsrc/fonts.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
9 changes: 7 additions & 2 deletions armsrc/fpgaloader.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
20 changes: 12 additions & 8 deletions armsrc/hitag2.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*/
//-----------------------------------------------------------------------------
// (c) 2009 Henryk Plötz <[email protected]>
//
// 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"
Expand Down
14 changes: 9 additions & 5 deletions armsrc/hitag2.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/*
* Hitag2 emulation public interface
*
* (c) 2009 Henryk Plötz <[email protected]>
*/
//-----------------------------------------------------------------------------
// (c) 2009 Henryk Plötz <[email protected]>
//
// 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
Expand Down
8 changes: 7 additions & 1 deletion armsrc/iso14443.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 7 additions & 2 deletions armsrc/iso14443a.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
//-----------------------------------------------------------------------------
// Routines to support ISO 14443 type A.
//
// 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.
//-----------------------------------------------------------------------------

#include "proxmark3.h"
#include "apps.h"
#include "util.h"
Expand Down
13 changes: 9 additions & 4 deletions armsrc/iso15693.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
14 changes: 9 additions & 5 deletions armsrc/legicrf.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/*
* LEGIC RF simulation code
*
* (c) 2009 Henryk Plötz <[email protected]>
*/
//-----------------------------------------------------------------------------
// (c) 2009 Henryk Plötz <[email protected]>
//
// 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"
Expand Down
14 changes: 9 additions & 5 deletions armsrc/legicrf.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/*
* LEGIC RF emulation public interface
*
* (c) 2009 Henryk Plötz <[email protected]>
*/
//-----------------------------------------------------------------------------
// (c) 2009 Henryk Plötz <[email protected]>
//
// 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
Expand Down
6 changes: 5 additions & 1 deletion armsrc/lfops.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 10 additions & 0 deletions armsrc/printf.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//-----------------------------------------------------------------------------
// Copyright (C) 2010 Hector Martin "marcan" <[email protected]>
//
// 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

Expand Down
8 changes: 7 additions & 1 deletion armsrc/start.c
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
12 changes: 9 additions & 3 deletions armsrc/stdint.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/*
* Replacement stdint.h because GCC doesn't come with it yet (C99)
*/
//-----------------------------------------------------------------------------
// Copyright (C) 2010 Hector Martin "marcan" <[email protected]>
//
// 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
Expand Down
11 changes: 10 additions & 1 deletion armsrc/string.c
Original file line number Diff line number Diff line change
@@ -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 <stdint.h>

Expand Down
11 changes: 11 additions & 0 deletions armsrc/string.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//-----------------------------------------------------------------------------
// Jonathan Westhues, Aug 2005
// Copyright (C) 2010 Hector Martin "marcan" <[email protected]>
//
// 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

Expand Down
8 changes: 7 additions & 1 deletion armsrc/util.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
//-----------------------------------------------------------------------------
// Utility functions used in many places, not specific to any piece of code.
// 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.
//-----------------------------------------------------------------------------

#include "proxmark3.h"
#include "util.h"
#include "string.h"
Expand Down
10 changes: 10 additions & 0 deletions armsrc/util.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions bootrom/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions bootrom/bootrom.c
Original file line number Diff line number Diff line change
@@ -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>

struct common_area common_area __attribute__((section(".commonarea")));
Expand Down
8 changes: 8 additions & 0 deletions bootrom/flash-reset.s
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading

0 comments on commit bd20f8f

Please sign in to comment.