From 32985a29c18014989385170bb7182839058895fe Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 13 Sep 2006 16:23:52 +0000 Subject: add GPL disclaimer to all C files that I wrote git-svn-id: https://svn.openpcd.org:2342/trunk@195 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/dfu/dfu.c | 14 ++++++++++++++ firmware/src/dfu/dfu.h | 14 ++++++++++++++ firmware/src/os/dbgu.c | 21 +++++++++++++++++++++ firmware/src/os/fifo.c | 20 +++++++++++++++++++- firmware/src/os/led.c | 18 ++++++++++++++++++ firmware/src/os/main.c | 19 +++++++++++++++++++ firmware/src/os/pcd_enumerate.c | 15 ++++++++++++++- firmware/src/os/pio_irq.c | 19 +++++++++++++++++++ firmware/src/os/pit.c | 19 ++++++++++++++++++- firmware/src/os/pwm.c | 15 ++++++++++++++- firmware/src/os/req_ctx.c | 19 +++++++++++++++++++ firmware/src/os/tc_cdiv.c | 14 ++++++++++++++ firmware/src/os/trigger.c | 19 +++++++++++++++++++ firmware/src/os/usb_benchmark.c | 19 +++++++++++++++++++ firmware/src/os/usb_handler.c | 17 ++++++++++++++++- firmware/src/os/wdt.c | 15 +++++++++++++++ firmware/src/pcd/main_analog.c | 22 ++++++++++++++++++++-- firmware/src/pcd/main_dumbreader.c | 19 +++++++++++++++++++ firmware/src/pcd/main_pwm.c | 17 +++++++++++++++++ firmware/src/pcd/main_reqa.c | 16 ++++++++++++++++ firmware/src/pcd/rc632.c | 19 ++++++++++++++++++- firmware/src/pcd/rc632_highlevel.c | 13 ++++++------- firmware/src/pcd/rfid_layer2_iso14443a.c | 13 ++++++------- firmware/src/picc/adc.c | 16 +++++++++++++++- firmware/src/picc/decoder.c | 19 ++++++++++++++++++- firmware/src/picc/decoder_miller.c | 19 ++++++++++++++++++- firmware/src/picc/decoder_nrzl.c | 19 ++++++++++++++++++- firmware/src/picc/iso14443a_manchester.c | 21 +++++++++++++++++++-- firmware/src/picc/load_modulation.c | 20 ++++++++++++++++++++ firmware/src/picc/main_openpicc.c | 20 ++++++++++++++++++++ firmware/src/picc/pll.c | 19 +++++++++++++++++++ firmware/src/picc/poti.c | 19 ++++++++++++++++++- firmware/src/picc/ssc_picc.c | 16 +++++++++++++++- firmware/src/picc/tc_fdt.c | 21 +++++++++++++++++++-- firmware/src/start/Cstartup.S | 19 +++++++++++++++++++ firmware/src/start/Cstartup_app.S | 19 ++++++++++++++++++- 36 files changed, 610 insertions(+), 33 deletions(-) (limited to 'firmware/src') diff --git a/firmware/src/dfu/dfu.c b/firmware/src/dfu/dfu.c index f50b564..763aa04 100644 --- a/firmware/src/dfu/dfu.c +++ b/firmware/src/dfu/dfu.c @@ -4,6 +4,20 @@ * This ought to be compliant to the USB DFU Spec 1.0 as available from * http://www.usb.org/developers/devclass_docs/usbdfu10.pdf * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include diff --git a/firmware/src/dfu/dfu.h b/firmware/src/dfu/dfu.h index 992a4f2..4b7508f 100644 --- a/firmware/src/dfu/dfu.h +++ b/firmware/src/dfu/dfu.h @@ -7,6 +7,20 @@ * This ought to be compliant to the USB DFU Spec 1.0 as available from * http://www.usb.org/developers/devclass_docs/usbdfu10.pdf * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/firmware/src/os/dbgu.c b/firmware/src/os/dbgu.c index dc1a040..f7c62e3 100644 --- a/firmware/src/os/dbgu.c +++ b/firmware/src/os/dbgu.c @@ -1,3 +1,24 @@ +/* AT91SAM7 debug function implementation for OpenPCD + * (C) 2006 by Harald Welte + * + * I based this on existing BSD-style licensed code, please see below. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + /*---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support - ROUSSET - *---------------------------------------------------------------------------- diff --git a/firmware/src/os/fifo.c b/firmware/src/os/fifo.c index b0ec152..c30ba10 100644 --- a/firmware/src/os/fifo.c +++ b/firmware/src/os/fifo.c @@ -1,4 +1,22 @@ -/* Implementation of a virtual FIFO */ +/* Implementation of a virtual FIFO for OpenPCD + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include "fifo.h" diff --git a/firmware/src/os/led.c b/firmware/src/os/led.c index 8c34c6c..30353ac 100644 --- a/firmware/src/os/led.c +++ b/firmware/src/os/led.c @@ -1,3 +1,21 @@ +/* LED support code for OpenPCD + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ #include #include diff --git a/firmware/src/os/main.c b/firmware/src/os/main.c index 878fdbf..3e05a7d 100644 --- a/firmware/src/os/main.c +++ b/firmware/src/os/main.c @@ -1,3 +1,22 @@ +/* USB Device Firmware for OpenPCD + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include #include diff --git a/firmware/src/os/pcd_enumerate.c b/firmware/src/os/pcd_enumerate.c index 40bd88e..51f99f0 100644 --- a/firmware/src/os/pcd_enumerate.c +++ b/firmware/src/os/pcd_enumerate.c @@ -1,7 +1,20 @@ /* AT91SAM7 USB interface code for OpenPCD - * * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * based on existing AT91SAM7 UDP CDC ACM example code, licensed as followed: *---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support - ROUSSET - diff --git a/firmware/src/os/pio_irq.c b/firmware/src/os/pio_irq.c index 8dae806..dfe818c 100644 --- a/firmware/src/os/pio_irq.c +++ b/firmware/src/os/pio_irq.c @@ -1,3 +1,22 @@ +/* PIO IRQ Implementation for OpenPCD + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include #include diff --git a/firmware/src/os/pit.c b/firmware/src/os/pit.c index 409faef..5726f06 100644 --- a/firmware/src/os/pit.c +++ b/firmware/src/os/pit.c @@ -1,4 +1,21 @@ - +/* Periodic Interval Timer Implementation for OpenPCD + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ #include #include diff --git a/firmware/src/os/pwm.c b/firmware/src/os/pwm.c index e05699b..5c52ee6 100644 --- a/firmware/src/os/pwm.c +++ b/firmware/src/os/pwm.c @@ -1,7 +1,20 @@ /* AT91SAM7 PWM routines for OpenPCD / OpenPICC - * * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include diff --git a/firmware/src/os/req_ctx.c b/firmware/src/os/req_ctx.c index 99d248b..d118aca 100644 --- a/firmware/src/os/req_ctx.c +++ b/firmware/src/os/req_ctx.c @@ -1,3 +1,22 @@ +/* AT91SAM7 USB Request Context for OpenPCD / OpenPICC + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include #include diff --git a/firmware/src/os/tc_cdiv.c b/firmware/src/os/tc_cdiv.c index 6c4024c..2b269fe 100644 --- a/firmware/src/os/tc_cdiv.c +++ b/firmware/src/os/tc_cdiv.c @@ -1,6 +1,20 @@ /* OpenPC TC (Timer / Clock) support code * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * This idea of this code is to feed the 13.56MHz carrier clock of RC632 * into TCLK1, which is routed to XC1. Then configure TC0 to divide this * clock by a configurable divider. diff --git a/firmware/src/os/trigger.c b/firmware/src/os/trigger.c index b8cedf3..7220e85 100644 --- a/firmware/src/os/trigger.c +++ b/firmware/src/os/trigger.c @@ -1,3 +1,22 @@ +/* AT91SAM7 Trigger output routines for OpenPCD / OpenPICC + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include #include "../openpcd.h" diff --git a/firmware/src/os/usb_benchmark.c b/firmware/src/os/usb_benchmark.c index 3637bc3..1f890bf 100644 --- a/firmware/src/os/usb_benchmark.c +++ b/firmware/src/os/usb_benchmark.c @@ -1,3 +1,22 @@ +/* AT91SAM7 USB benchmark routines for OpenPCD / OpenPICC + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include #include diff --git a/firmware/src/os/usb_handler.c b/firmware/src/os/usb_handler.c index 274353c..6c45e18 100644 --- a/firmware/src/os/usb_handler.c +++ b/firmware/src/os/usb_handler.c @@ -1,5 +1,20 @@ /* OpenPCD USB handler - handle incoming USB requests on OUT pipe - * (C) 2006 by Harald Welte + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include diff --git a/firmware/src/os/wdt.c b/firmware/src/os/wdt.c index d8a2145..579d15d 100644 --- a/firmware/src/os/wdt.c +++ b/firmware/src/os/wdt.c @@ -1,5 +1,20 @@ /* AT91SAM7 Watch Dog Timer code for OpenPCD / OpenPICC * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #define WDT_DEBUG diff --git a/firmware/src/pcd/main_analog.c b/firmware/src/pcd/main_analog.c index 8ffa1d4..799a98b 100644 --- a/firmware/src/pcd/main_analog.c +++ b/firmware/src/pcd/main_analog.c @@ -1,9 +1,27 @@ /* main_reqa - OpenPCD firmware for generating an endless loop of * ISO 14443-A REQA packets. + * (C) 2006 by Harald Welte * - * If a response is received from the PICC, LED1 (Red) will be switched + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + + +/* If a response is received from the PICC, LED2 (green) will be switched * on. If no valid response has been received within the timeout of the - * receiver, LED1 (Red) will be switched off. + * receiver, LED1 (Red) will be toggled. * */ diff --git a/firmware/src/pcd/main_dumbreader.c b/firmware/src/pcd/main_dumbreader.c index 1535e27..d5db8a5 100644 --- a/firmware/src/pcd/main_dumbreader.c +++ b/firmware/src/pcd/main_dumbreader.c @@ -1,3 +1,22 @@ +/* AT91SAM7 "dumb reader" firmware for OpenPCD + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include #include diff --git a/firmware/src/pcd/main_pwm.c b/firmware/src/pcd/main_pwm.c index 2f92d28..58010ee 100644 --- a/firmware/src/pcd/main_pwm.c +++ b/firmware/src/pcd/main_pwm.c @@ -2,6 +2,23 @@ * carrier * * To use this, you need to connect PIOA P0 with MFIN of the reader. + * + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include diff --git a/firmware/src/pcd/main_reqa.c b/firmware/src/pcd/main_reqa.c index e28fdff..9f46569 100644 --- a/firmware/src/pcd/main_reqa.c +++ b/firmware/src/pcd/main_reqa.c @@ -6,6 +6,22 @@ * on. If no valid response has been received within the timeout of the * receiver, LED1 (Red) will be switched off. * + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include diff --git a/firmware/src/pcd/rc632.c b/firmware/src/pcd/rc632.c index 5d45955..3a91e8f 100644 --- a/firmware/src/pcd/rc632.c +++ b/firmware/src/pcd/rc632.c @@ -6,7 +6,24 @@ * librfid in order to be able to leverage higher-level code from librfid * to this OpenPCD firmware. * - * */ + * AT91SAM7 PWM routines for OpenPCD / OpenPICC + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ #include #include diff --git a/firmware/src/pcd/rc632_highlevel.c b/firmware/src/pcd/rc632_highlevel.c index b1186ab..34a28c7 100644 --- a/firmware/src/pcd/rc632_highlevel.c +++ b/firmware/src/pcd/rc632_highlevel.c @@ -1,13 +1,10 @@ /* Generic Philips CL RC632 Routines + * (C) 2006 by Harald Welte * - * (C) Harald Welte - * - */ - -/* * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +14,10 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ + #include #include #include diff --git a/firmware/src/pcd/rfid_layer2_iso14443a.c b/firmware/src/pcd/rfid_layer2_iso14443a.c index 80d9d5f..923f50b 100644 --- a/firmware/src/pcd/rfid_layer2_iso14443a.c +++ b/firmware/src/pcd/rfid_layer2_iso14443a.c @@ -1,13 +1,10 @@ /* ISO 14443-3 A anticollision implementation + * (C) 2005-2006 by Harald Welte * - * (C) 2005 by Harald Welte - * - */ - -/* * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +14,10 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ + #include #include #include diff --git a/firmware/src/picc/adc.c b/firmware/src/picc/adc.c index 31b3469..c78f89d 100644 --- a/firmware/src/picc/adc.c +++ b/firmware/src/picc/adc.c @@ -1,6 +1,20 @@ -/* AT91SAM7 ADC controller routines for OpenPCD / OpenPICC +/* AT91SAM7 ADC controller routines for OpenPICC * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ #include diff --git a/firmware/src/picc/decoder.c b/firmware/src/picc/decoder.c index 9f9191a..ab77250 100644 --- a/firmware/src/picc/decoder.c +++ b/firmware/src/picc/decoder.c @@ -1,7 +1,24 @@ -/* Decoder Core for OpenPCD / OpenPICC +/* Decoder Core for OpenPICC * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ + + #include #include #include diff --git a/firmware/src/picc/decoder_miller.c b/firmware/src/picc/decoder_miller.c index 1394a17..cc62672 100644 --- a/firmware/src/picc/decoder_miller.c +++ b/firmware/src/picc/decoder_miller.c @@ -1,7 +1,24 @@ /* - * ISO14443A modified Miller decoder + * ISO14443A modified Miller decoder for OpenPICC * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +/* * LSB First LSB hex * Sequence X 0010 0100 0x4 * Sequence Y 0000 0000 0x0 diff --git a/firmware/src/picc/decoder_nrzl.c b/firmware/src/picc/decoder_nrzl.c index a1b79aa..136a9c8 100644 --- a/firmware/src/picc/decoder_nrzl.c +++ b/firmware/src/picc/decoder_nrzl.c @@ -1,6 +1,23 @@ -/* ISO 14443 B Rx (PCD->PICC) implementation +/* NRZ-L decoder implementation for OpenPICC * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +/* * speed(kbps) 106 212 424 848 * etu 128/fc 64/fc 32/fc 16/fc * etu(usec) 9.4 4.7 2.35 1.18 diff --git a/firmware/src/picc/iso14443a_manchester.c b/firmware/src/picc/iso14443a_manchester.c index aca832c..f9eba1e 100644 --- a/firmware/src/picc/iso14443a_manchester.c +++ b/firmware/src/picc/iso14443a_manchester.c @@ -1,7 +1,24 @@ -/* - * ISO14443A Manchester encoder +/* ISO14443A Manchester encoder for OpenPICC * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + + +/* * Definitions for 106kBps, at sampling clock 1695kHz * * bit sample pattern for one bit cycle diff --git a/firmware/src/picc/load_modulation.c b/firmware/src/picc/load_modulation.c index 65c59d1..576bc74 100644 --- a/firmware/src/picc/load_modulation.c +++ b/firmware/src/picc/load_modulation.c @@ -1,3 +1,23 @@ +/* AT91SAM7 PWM routines for OpenPICC + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + + #include #include diff --git a/firmware/src/picc/main_openpicc.c b/firmware/src/picc/main_openpicc.c index 312194b..c8d2fd0 100644 --- a/firmware/src/picc/main_openpicc.c +++ b/firmware/src/picc/main_openpicc.c @@ -1,3 +1,23 @@ +/* OpenPICC Main Program + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + + #include #include #include diff --git a/firmware/src/picc/pll.c b/firmware/src/picc/pll.c index bed08ef..f98d171 100644 --- a/firmware/src/picc/pll.c +++ b/firmware/src/picc/pll.c @@ -1,3 +1,22 @@ +/* PLL routines for OpenPICC + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + #include #include diff --git a/firmware/src/picc/poti.c b/firmware/src/picc/poti.c index 2cc8e5c..4c94994 100644 --- a/firmware/src/picc/poti.c +++ b/firmware/src/picc/poti.c @@ -1,7 +1,24 @@ /* SPI Potentiometer AD 7367 Driver for OpenPICC - * (C) by Harald Welte + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * */ + + #include #include #include "../openpcd.h" diff --git a/firmware/src/picc/ssc_picc.c b/firmware/src/picc/ssc_picc.c index fac2c62..ea48de5 100644 --- a/firmware/src/picc/ssc_picc.c +++ b/firmware/src/picc/ssc_picc.c @@ -1,6 +1,20 @@ -/* AT91SAM7 SSC controller routines for OpenPCD +/* AT91SAM7 SSC controller routines for OpenPICC * (C) 2006 by Harald Welte * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * We use SSC for both TX and RX side. * * RX side is interconnected with demodulated carrier diff --git a/firmware/src/picc/tc_fdt.c b/firmware/src/picc/tc_fdt.c index 041001d..b5e6a27 100644 --- a/firmware/src/picc/tc_fdt.c +++ b/firmware/src/picc/tc_fdt.c @@ -1,7 +1,24 @@ -/* OpenPC TC (Timer / Clock) support code +/* OpenPICC TC (Timer / Clock) support code * (C) 2006 by Harald Welte * - * PICC Simulator Side: + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + + +/* PICC Simulator Side: * In order to support responding to synchronous frames (REQA/WUPA/ANTICOL), * we need a second Timer/Counter (TC2). This unit is reset by an external * event (rising edge of modulation pause PCD->PICC) connected to TIOB2, and diff --git a/firmware/src/start/Cstartup.S b/firmware/src/start/Cstartup.S index e7d5714..5ed2712 100644 --- a/firmware/src/start/Cstartup.S +++ b/firmware/src/start/Cstartup.S @@ -1,3 +1,22 @@ +/* AT91SAM7 low-level startup outines for OpenPCD / OpenPICC DFU loader + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + /*------------------------------------------------------------------------------ //*- ATMEL Microcontroller Software Support - ROUSSET - //*------------------------------------------------------------------------------ diff --git a/firmware/src/start/Cstartup_app.S b/firmware/src/start/Cstartup_app.S index 4a2187a..0fc2bd5 100644 --- a/firmware/src/start/Cstartup_app.S +++ b/firmware/src/start/Cstartup_app.S @@ -1,5 +1,22 @@ /* Cstartup header for the application to be started by at91dfu - * (C) 2006 by Harald Welte */ + * (C) 2006 by Harald Welte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + //#define DEBUG_LL -- cgit v1.2.3