mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: adjustments to the USB reading part.
This commit is contained in:
parent
a4b4a1a9a2
commit
b4a03581c2
4 changed files with 56 additions and 21 deletions
|
@ -1738,7 +1738,7 @@ typedef struct _AT91S_UDP {
|
|||
#define AT91C_UDP_EPEDS (0x1 << 15) // (UDP) Endpoint Enable Disable
|
||||
#define AT91C_UDP_RXBYTECNT (0x7FF << 16) // (UDP) Number Of Bytes Available in the FIFO
|
||||
// -------- UDP_TXVC : (UDP Offset: 0x74) Transceiver Control Register --------
|
||||
#define AT91C_UDP_TXVDIS (0x1 << 8) // (UDP)
|
||||
#define AT91C_UDP_TXVDIS (0x1 << 8) // (UDP) Transceiver Disable
|
||||
|
||||
// *****************************************************************************
|
||||
// REGISTER ADDRESS DEFINITION FOR AT91SAM7S512
|
||||
|
|
|
@ -81,7 +81,10 @@
|
|||
#define LED_D_INV() INVBIT(GPIO_LED_D)
|
||||
#define RELAY_ON() HIGH(GPIO_RELAY)
|
||||
#define RELAY_OFF() LOW(GPIO_RELAY)
|
||||
#define BUTTON_PRESS() !(AT91C_BASE_PIOA->PIO_PDSR & GPIO_BUTTON)
|
||||
#define BUTTON_PRESS() !((AT91C_BASE_PIOA->PIO_PDSR & GPIO_BUTTON) == GPIO_BUTTON)
|
||||
|
||||
//NVDD goes LOW when USB is attached.
|
||||
#define USB_ATTACHED() !((AT91C_BASE_PIOA->PIO_PDSR & GPIO_NVDD_ON) == GPIO_NVDD_ON)
|
||||
|
||||
#define VERSION_INFORMATION_MAGIC 0x56334d50
|
||||
struct version_information {
|
||||
|
|
|
@ -202,6 +202,7 @@ typedef struct{
|
|||
|
||||
#define CMD_MIFARE_CHKKEYS 0x0623
|
||||
#define CMD_MIFARE_SETMOD 0x0624
|
||||
#define CMD_MIFARE_CHKKEYS_FAST 0x0625
|
||||
|
||||
#define CMD_MIFARE_SNIFFER 0x0630
|
||||
//ultralightC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue