diff options
Diffstat (limited to 'firmware/src/picc')
| -rw-r--r-- | firmware/src/picc/adc.c | 16 | ||||
| -rw-r--r-- | firmware/src/picc/decoder.c | 19 | ||||
| -rw-r--r-- | firmware/src/picc/decoder_miller.c | 19 | ||||
| -rw-r--r-- | firmware/src/picc/decoder_nrzl.c | 19 | ||||
| -rw-r--r-- | firmware/src/picc/iso14443a_manchester.c | 21 | ||||
| -rw-r--r-- | firmware/src/picc/load_modulation.c | 20 | ||||
| -rw-r--r-- | firmware/src/picc/main_openpicc.c | 20 | ||||
| -rw-r--r-- | firmware/src/picc/pll.c | 19 | ||||
| -rw-r--r-- | firmware/src/picc/poti.c | 19 | ||||
| -rw-r--r-- | firmware/src/picc/ssc_picc.c | 16 | ||||
| -rw-r--r-- | firmware/src/picc/tc_fdt.c | 21 | 
11 files changed, 199 insertions, 10 deletions
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 <hwelte@hmw-consulting.de>   * + *  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 <errno.h> 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 <hwelte@hmw-consulting.de> + * + *  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 <errno.h>  #include <sys/types.h>  #include <picc/decoder.h> 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 <hwelte@hmw-consulting.de>   * + *  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 <hwelte@hmw-consulting.de>   * + *  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 <hwelte@hmw-consulting.de>   * + *  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 <hwelte@hmw-consulting.de> + * + *  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 <sys/types.h>  #include <lib_AT91SAM7.h> 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 <hwelte@hmw-consulting.de> + * + *  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 <errno.h>  #include <include/lib_AT91SAM7.h>  #include <include/openpcd.h> 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 <hwelte@hmw-consulting.de> + * + *  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 <sys/types.h>  #include <lib_AT91SAM7.h> 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 <hwelte@hmw-consulting.de> + * (C) 2006 by Harald Welte <hwelte@hmw-consulting.de> + * + *  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 <sys/types.h>  #include <lib_AT91SAM7.h>  #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 <hwelte@hmw-consulting.de>   * + *  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 <hwelte@hmw-consulting.de>   * - * 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  | 
