mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
ADD: beginning to add SPI to access flash memory.
This commit is contained in:
parent
85b2533435
commit
ad73af95c2
4 changed files with 28 additions and 1 deletions
|
@ -2111,6 +2111,7 @@ typedef struct _AT91S_UDP {
|
|||
#define AT91C_PIO_PA1 (1 << 1) // Pin Controlled by PA1
|
||||
#define AT91C_PA1_PWM1 (AT91C_PIO_PA1) // PWM Channel 1
|
||||
#define AT91C_PA1_TIOB0 (AT91C_PIO_PA1) // Timer Counter 0 Multipurpose Timer I/O Pin B
|
||||
#define AT91C_PA1_NPCS3 (AT91C_PIO_PA1) // SPI Peripheral Chip Select 3
|
||||
#define AT91C_PIO_PA2 (1 << 2) // Pin Controlled by PA2
|
||||
#define AT91C_PA2_PWM2 (AT91C_PIO_PA2) // PWM Channel 2
|
||||
#define AT91C_PA2_SCK0 (AT91C_PIO_PA2) // USART 0 Serial Clock
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#define GPIO_LRST AT91C_PIO_PA7
|
||||
#define GPIO_LED_B AT91C_PIO_PA8
|
||||
#define GPIO_LED_C AT91C_PIO_PA9
|
||||
#define GPIO_NCS3 AT91C_PA1_NPCS3
|
||||
#define GPIO_NCS2 AT91C_PA10_NPCS2
|
||||
#define GPIO_NCS0 AT91C_PA11_NPCS0
|
||||
#define GPIO_MISO AT91C_PA12_MISO
|
||||
|
|
|
@ -59,8 +59,10 @@
|
|||
#define SETBIT(x, y) (y) ? (HIGH(x)):(LOW(x))
|
||||
#define INVBIT(x) SETBIT((x), !(GETBIT(x)))
|
||||
|
||||
// Setup for SPI current modes
|
||||
#define SPI_FPGA_MODE 0
|
||||
#define SPI_LCD_MODE 1
|
||||
#define SPI_MEM_MODE 2
|
||||
|
||||
#ifndef COTAG_BITS
|
||||
#define COTAG_BITS 264
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue