mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
add: flash memory support
This commit is contained in:
parent
ad73af95c2
commit
0495e93b6d
4 changed files with 348 additions and 1 deletions
|
@ -82,6 +82,22 @@
|
|||
#define LED_D_ON() HIGH(GPIO_LED_D)
|
||||
#define LED_D_OFF() LOW(GPIO_LED_D)
|
||||
#define LED_D_INV() INVBIT(GPIO_LED_D)
|
||||
#define SCK_LOW LOW(GPIO_SPCK)
|
||||
#define SCK_HIGH HIGH(GPIO_SPCK)
|
||||
#define MOSI_HIGH HIGH(GPIO_MOSI)
|
||||
#define MOSI_LOW LOW(GPIO_MOSI)
|
||||
// fpga
|
||||
#define NCS_0_LOW LOW(GPIO_NCS0)
|
||||
#define NCS_0_HIGH HIGH(GPIO_NCS0)
|
||||
// lcd
|
||||
#define NCS_2_LOW LOW(GPIO_NCS2)
|
||||
#define NCS_2_HIGH HIGH(GPIO_NCS2)
|
||||
// flash mem
|
||||
#define NCS_3_LOW LOW(GPIO_NCS3)
|
||||
#define NCS_3_HIGH HIGH(GPIO_NCS3)
|
||||
|
||||
|
||||
#define MISO_VALUE (AT91C_BASE_PIOA->PIO_PDSR & GPIO_MISO)
|
||||
#define RELAY_ON() HIGH(GPIO_RELAY)
|
||||
#define RELAY_OFF() LOW(GPIO_RELAY)
|
||||
#define BUTTON_PRESS() !((AT91C_BASE_PIOA->PIO_PDSR & GPIO_BUTTON) == GPIO_BUTTON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue