]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - include/config_gpio.h
lf hid: Added encode/decode support for Issue Level
[proxmark3-svn] / include / config_gpio.h
index 1a189a9ee912748758c5bd0243be7e5feafbcf6b..5307c220f194dfcba02a8405e2db53680d169437 100644 (file)
@@ -1,40 +1,45 @@
-#ifndef __CONFIG_GPIO_H\r
-#define __CONFIG_GPIO_H\r
-\r
-#define GPIO_LED_A                     0\r
-#define GPIO_PA1                       1\r
-#define GPIO_LED_D                     2\r
-#define GPIO_NVDD_ON           3\r
-#define GPIO_FPGA_NINIT                4\r
-#define GPIO_PA5                       5\r
-#define GPIO_PCK0                      6\r
-#define GPIO_LRST                      7\r
-#define GPIO_LED_B                     8\r
-#define GPIO_LED_C                     9\r
-#define GPIO_NCS2                      10\r
-#define GPIO_NCS0                      11\r
-#define GPIO_MISO                      12\r
-#define GPIO_MOSI                      13\r
-#define GPIO_SPCK                      14\r
-#define GPIO_SSC_FRAME         15\r
-#define GPIO_SSC_CLK           16\r
-#define GPIO_SSC_DOUT          17\r
-#define GPIO_SSC_DIN           18\r
-#define GPIO_MUXSEL_HIPKD      19\r
-#define GPIO_MUXSEL_LOPKD      20\r
-#define GPIO_MUXSEL_HIRAW      21\r
-#define GPIO_MUXSEL_LORAW      22\r
-#define GPIO_BUTTON                    23\r
-#define GPIO_USB_PU                    24\r
-#define GPIO_RELAY                     25\r
-#define GPIO_FPGA_ON           26\r
-#define GPIO_FPGA_DONE         27\r
-#define GPIO_FPGA_NPROGRAM     28\r
-#define GPIO_FPGA_CCLK         29\r
-#define GPIO_FPGA_DIN          30\r
-#define GPIO_FPGA_DOUT         31\r
-\r
-#define ANIN_AMPL_LO           4\r
-#define ANIN_AMPL_HI           5\r
-\r
-#endif\r
+//-----------------------------------------------------------------------------
+// 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
+
+#define GPIO_LED_A                     AT91C_PIO_PA0
+#define GPIO_PA1                       AT91C_PIO_PA1
+#define GPIO_LED_D                     AT91C_PIO_PA2
+#define GPIO_NVDD_ON           AT91C_PIO_PA3
+#define GPIO_FPGA_NINIT                AT91C_PIO_PA4
+#define GPIO_PA5                       AT91C_PIO_PA5
+#define GPIO_PCK0                      AT91C_PA6_PCK0
+#define GPIO_LRST                      AT91C_PIO_PA7
+#define GPIO_LED_B                     AT91C_PIO_PA8
+#define GPIO_LED_C                     AT91C_PIO_PA9
+#define GPIO_NCS2                      AT91C_PA10_NPCS2
+#define GPIO_NCS0                      AT91C_PA11_NPCS0
+#define GPIO_MISO                      AT91C_PA12_MISO
+#define GPIO_MOSI                      AT91C_PA13_MOSI
+#define GPIO_SPCK                      AT91C_PA14_SPCK
+#define GPIO_SSC_FRAME         AT91C_PA15_TF
+#define GPIO_SSC_CLK           AT91C_PA16_TK
+#define GPIO_SSC_DOUT          AT91C_PA17_TD
+#define GPIO_SSC_DIN           AT91C_PA18_RD
+#define GPIO_MUXSEL_HIPKD      AT91C_PIO_PA19
+#define GPIO_MUXSEL_LOPKD      AT91C_PIO_PA20
+#define GPIO_MUXSEL_HIRAW      AT91C_PIO_PA21
+#define GPIO_MUXSEL_LORAW      AT91C_PIO_PA22
+#define GPIO_BUTTON                    AT91C_PIO_PA23
+#define GPIO_USB_PU                    AT91C_PIO_PA24
+#define GPIO_RELAY                     AT91C_PIO_PA25
+#define GPIO_FPGA_ON           AT91C_PIO_PA26
+#define GPIO_FPGA_DONE         AT91C_PIO_PA27
+#define GPIO_FPGA_NPROGRAM     AT91C_PIO_PA28
+#define GPIO_FPGA_CCLK         AT91C_PIO_PA29
+#define GPIO_FPGA_DIN          AT91C_PIO_PA30
+#define GPIO_FPGA_DOUT         AT91C_PIO_PA31
+
+#endif
Impressum, Datenschutz