fix missing gitignore
[RRG-proxmark3.git] / include / config_gpio.h
blobfecf995267d9652fb84e13d815fda9aa6271e497
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // GPIO pin mapping for the Proxmark3
17 //-----------------------------------------------------------------------------
19 #ifndef __CONFIG_GPIO_H
20 #define __CONFIG_GPIO_H
22 #define GPIO_LED_A AT91C_PIO_PA0
23 #define GPIO_PA1 AT91C_PIO_PA1
24 #ifndef LED_ORDER_PM3EASY
25 #define GPIO_LED_D AT91C_PIO_PA2
26 #else
27 #define GPIO_LED_B AT91C_PIO_PA2
28 #endif
29 #define GPIO_NVDD_ON AT91C_PIO_PA3
30 #define GPIO_FPGA_NINIT AT91C_PIO_PA4
31 #define GPIO_PA5 AT91C_PIO_PA5
32 #define GPIO_PCK0 AT91C_PA6_PCK0
33 #define GPIO_LRST AT91C_PIO_PA7
34 #ifndef LED_ORDER_PM3EASY
35 #define GPIO_LED_B AT91C_PIO_PA8
36 #else
37 #define GPIO_LED_D AT91C_PIO_PA8
38 #endif
39 #define GPIO_LED_C AT91C_PIO_PA9
41 // defines for flash mem, or rdv40 ?
42 // flashmem hooked on PA10
43 //#define GPIO_NCS2 AT91C_PIO_PA1
44 #define GPIO_NCS2 AT91C_PA10_NPCS2
45 #define GPIO_NCS0 AT91C_PA11_NPCS0
47 #define GPIO_MISO AT91C_PA12_MISO
48 #define GPIO_MOSI AT91C_PA13_MOSI
49 #define GPIO_SPCK AT91C_PA14_SPCK
50 #define GPIO_SSC_FRAME AT91C_PA15_TF
51 #define GPIO_SSC_CLK AT91C_PA16_TK
52 #define GPIO_SSC_DOUT AT91C_PA17_TD
53 #define GPIO_SSC_DIN AT91C_PA18_RD
54 #define GPIO_MUXSEL_HIPKD AT91C_PIO_PA19
55 #define GPIO_MUXSEL_LOPKD AT91C_PIO_PA20
57 // RDV40 has no HIRAW/LORAW, its used for FPC
58 #define GPIO_MUXSEL_HIRAW AT91C_PIO_PA21
59 #define GPIO_MUXSEL_LORAW AT91C_PIO_PA22
61 #define GPIO_BUTTON AT91C_PIO_PA23
62 #define GPIO_USB_PU AT91C_PIO_PA24
63 #define GPIO_RELAY AT91C_PIO_PA25
64 #if defined XC3
65 #define GPIO_FPGA_SWITCH AT91C_PIO_PA26
66 #else
67 #define GPIO_FPGA_ON AT91C_PIO_PA26
68 #endif
69 #define GPIO_FPGA_DONE AT91C_PIO_PA27
70 #define GPIO_FPGA_NPROGRAM AT91C_PIO_PA28
71 #define GPIO_FPGA_CCLK AT91C_PIO_PA29
72 #define GPIO_FPGA_DIN AT91C_PIO_PA30
73 #define GPIO_FPGA_DOUT AT91C_PIO_PA31
75 #endif