2010-02-21 08:12:52 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2022-01-07 08:58:03 +08:00
|
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
|
|
|
//
|
|
|
|
// 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 3 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.
|
|
|
|
//
|
|
|
|
// See LICENSE.txt for the text of the license.
|
2010-02-21 08:12:52 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// GPIO pin mapping for the Proxmark3
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2010-02-21 06:50:30 +08:00
|
|
|
#ifndef __CONFIG_GPIO_H
|
|
|
|
#define __CONFIG_GPIO_H
|
|
|
|
|
2019-03-10 01:41:30 +08:00
|
|
|
#define GPIO_LED_A AT91C_PIO_PA0
|
|
|
|
#define GPIO_PA1 AT91C_PIO_PA1
|
2024-02-18 19:57:26 +08:00
|
|
|
#ifndef LED_ORDER_PM3EASY
|
2019-03-10 01:41:30 +08:00
|
|
|
#define GPIO_LED_D AT91C_PIO_PA2
|
2024-02-18 19:57:26 +08:00
|
|
|
#else
|
|
|
|
#define GPIO_LED_B AT91C_PIO_PA2
|
|
|
|
#endif
|
2019-03-10 01:41:30 +08:00
|
|
|
#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
|
2024-02-18 19:57:26 +08:00
|
|
|
#ifndef LED_ORDER_PM3EASY
|
2019-03-10 01:41:30 +08:00
|
|
|
#define GPIO_LED_B AT91C_PIO_PA8
|
2024-02-18 19:57:26 +08:00
|
|
|
#else
|
|
|
|
#define GPIO_LED_D AT91C_PIO_PA8
|
|
|
|
#endif
|
2019-03-10 01:41:30 +08:00
|
|
|
#define GPIO_LED_C AT91C_PIO_PA9
|
2018-02-18 17:35:36 +08:00
|
|
|
|
2018-06-23 12:40:01 +08:00
|
|
|
// defines for flash mem, or rdv40 ?
|
2018-02-20 19:03:11 +08:00
|
|
|
// flashmem hooked on PA10
|
2019-03-10 01:41:30 +08:00
|
|
|
//#define GPIO_NCS2 AT91C_PIO_PA1
|
|
|
|
#define GPIO_NCS2 AT91C_PA10_NPCS2
|
|
|
|
#define GPIO_NCS0 AT91C_PA11_NPCS0
|
2018-02-18 17:35:36 +08:00
|
|
|
|
2019-03-10 01:41:30 +08:00
|
|
|
#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
|
2018-06-23 12:40:01 +08:00
|
|
|
|
2018-07-03 00:54:12 +08:00
|
|
|
// RDV40 has no HIRAW/LORAW, its used for FPC
|
2019-03-10 01:41:30 +08:00
|
|
|
#define GPIO_MUXSEL_HIRAW AT91C_PIO_PA21
|
|
|
|
#define GPIO_MUXSEL_LORAW AT91C_PIO_PA22
|
2018-06-23 12:40:01 +08:00
|
|
|
|
2019-03-10 01:41:30 +08:00
|
|
|
#define GPIO_BUTTON AT91C_PIO_PA23
|
|
|
|
#define GPIO_USB_PU AT91C_PIO_PA24
|
|
|
|
#define GPIO_RELAY AT91C_PIO_PA25
|
2021-08-22 05:43:06 +08:00
|
|
|
#if defined XC3
|
2021-08-25 19:44:06 +08:00
|
|
|
#define GPIO_FPGA_SWITCH AT91C_PIO_PA26
|
2021-08-22 05:43:06 +08:00
|
|
|
#else
|
2021-08-25 19:44:06 +08:00
|
|
|
#define GPIO_FPGA_ON AT91C_PIO_PA26
|
2021-08-22 05:43:06 +08:00
|
|
|
#endif
|
2019-03-10 01:41:30 +08:00
|
|
|
#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
|
2010-02-21 06:50:30 +08:00
|
|
|
|
|
|
|
#endif
|