mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
reduce some globals scope
This commit is contained in:
parent
5b54385347
commit
bc76c7263e
4 changed files with 7 additions and 7 deletions
|
@ -145,7 +145,7 @@ Initial values if not in flash
|
||||||
{ 29 , 17 , 15 , 40 , 0 , 0 , 15 }, // Leading 0
|
{ 29 , 17 , 15 , 40 , 0 , 0 , 15 }, // Leading 0
|
||||||
{ 29 , 17 , 15 , 31 , 47 , 63 , 15 } // 1 of 4
|
{ 29 , 17 , 15 , 31 , 47 , 63 , 15 } // 1 of 4
|
||||||
*/
|
*/
|
||||||
t55xx_configurations_t T55xx_Timing = {
|
static t55xx_configurations_t T55xx_Timing = {
|
||||||
{
|
{
|
||||||
#ifdef WITH_FLASH
|
#ifdef WITH_FLASH
|
||||||
// PM3RDV4
|
// PM3RDV4
|
||||||
|
|
|
@ -64,7 +64,7 @@ From "Dismantling iclass":
|
||||||
#include "mbedtls/des.h"
|
#include "mbedtls/des.h"
|
||||||
#include "optimized_cipherutils.h"
|
#include "optimized_cipherutils.h"
|
||||||
|
|
||||||
uint8_t pi[35] = {
|
static uint8_t pi[35] = {
|
||||||
0x0F, 0x17, 0x1B, 0x1D, 0x1E, 0x27, 0x2B, 0x2D,
|
0x0F, 0x17, 0x1B, 0x1D, 0x1E, 0x27, 0x2B, 0x2D,
|
||||||
0x2E, 0x33, 0x35, 0x39, 0x36, 0x3A, 0x3C, 0x47,
|
0x2E, 0x33, 0x35, 0x39, 0x36, 0x3A, 0x3C, 0x47,
|
||||||
0x4B, 0x4D, 0x4E, 0x53, 0x55, 0x56, 0x59, 0x5A,
|
0x4B, 0x4D, 0x4E, 0x53, 0x55, 0x56, 0x59, 0x5A,
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
#include "usart.h"
|
#include "usart.h"
|
||||||
#include "proxmark3_arm.h"
|
#include "proxmark3_arm.h"
|
||||||
|
|
||||||
volatile AT91PS_USART pUS1 = AT91C_BASE_US1;
|
static volatile AT91PS_USART pUS1 = AT91C_BASE_US1;
|
||||||
volatile AT91PS_PIO pPIO = AT91C_BASE_PIOA;
|
static volatile AT91PS_PIO pPIO = AT91C_BASE_PIOA;
|
||||||
volatile AT91PS_PDC pPDC = AT91C_BASE_PDC_US1;
|
static volatile AT91PS_PDC pPDC = AT91C_BASE_PDC_US1;
|
||||||
|
|
||||||
uint32_t g_usart_baudrate = 0;
|
uint32_t g_usart_baudrate = 0;
|
||||||
uint8_t g_usart_parity = 0;
|
uint8_t g_usart_parity = 0;
|
||||||
|
|
|
@ -129,7 +129,7 @@ AT91SAM7S256 USB Device Port
|
||||||
#define SET_LINE_CODING 0x2021
|
#define SET_LINE_CODING 0x2021
|
||||||
#define SET_CONTROL_LINE_STATE 0x2221
|
#define SET_CONTROL_LINE_STATE 0x2221
|
||||||
|
|
||||||
AT91PS_UDP pUdp = AT91C_BASE_UDP;
|
static AT91PS_UDP pUdp = AT91C_BASE_UDP;
|
||||||
static uint8_t btConfiguration = 0;
|
static uint8_t btConfiguration = 0;
|
||||||
static uint8_t btConnection = 0;
|
static uint8_t btConnection = 0;
|
||||||
static uint8_t btReceiveBank = AT91C_UDP_RX_DATA_BK0;
|
static uint8_t btReceiveBank = AT91C_UDP_RX_DATA_BK0;
|
||||||
|
@ -442,7 +442,7 @@ typedef struct {
|
||||||
uint8_t DataBits;
|
uint8_t DataBits;
|
||||||
} AT91S_CDC_LINE_CODING, *AT91PS_CDC_LINE_CODING;
|
} AT91S_CDC_LINE_CODING, *AT91PS_CDC_LINE_CODING;
|
||||||
|
|
||||||
AT91S_CDC_LINE_CODING line = { // purely informative, actual values don't matter
|
static AT91S_CDC_LINE_CODING line = { // purely informative, actual values don't matter
|
||||||
USART_BAUD_RATE, // baudrate
|
USART_BAUD_RATE, // baudrate
|
||||||
0, // 1 Stop Bit
|
0, // 1 Stop Bit
|
||||||
0, // None Parity
|
0, // None Parity
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue