remove spurious spaces & tabs at end of lines

This commit is contained in:
Philippe Teuwen 2019-03-09 08:59:13 +01:00
commit 60f292b18e
249 changed files with 8481 additions and 8481 deletions

View file

@ -24,7 +24,7 @@ typedef unsigned char byte_t;
// debug
// 0 - no debug messages 1 - error messages 2 - all messages 4 - extended debug mode
#define MF_DBG_NONE 0
#define MF_DBG_NONE 0
#define MF_DBG_ERROR 1
#define MF_DBG_ALL 2
#define MF_DBG_EXTENDED 4
@ -51,7 +51,7 @@ extern uint32_t FLASHMEM_SPIBAUDRATE;
// RDV40 Section
// 256kb divided into 4k sectors.
//
//
// last 4k sector = signature
// second last 4k sector = settings
// third last 4k sector = default MF keys dictionary
@ -94,11 +94,11 @@ extern uint32_t FLASHMEM_SPIBAUDRATE;
#ifndef DEFAULT_T55XX_KEYS_OFFSET
# define DEFAULT_T55XX_KEYS_OFFSET (FLASH_MEM_MAX_4K_SECTOR - 0x3000)
#endif
#ifndef DEFAULT_MF_KEYS_OFFSET
# define DEFAULT_MF_KEYS_OFFSET (FLASH_MEM_MAX_4K_SECTOR - 0x4000)
#endif
#ifndef DEFAULT_ICLASS_KEYS_OFFSET
# define DEFAULT_ICLASS_KEYS_OFFSET (FLASH_MEM_MAX_4K_SECTOR - 0x5000)
#endif
@ -114,5 +114,5 @@ typedef struct {
#ifdef __cplusplus
}
#endif
#endif
#endif

View file

@ -7,7 +7,7 @@
//-----------------------------------------------------------------------------
// Hitag2 type prototyping
//-----------------------------------------------------------------------------
// HitagS added
// HitagS added
//-----------------------------------------------------------------------------
#ifndef _HITAG2_H_

View file

@ -34,7 +34,7 @@ typedef enum TAG_STATE {
HT_WRITING_PAGE_DATA,
HT_WRITING_BLOCK_DATA} TSATE;
//number of start-of-frame bits
//number of start-of-frame bits
typedef enum SOF_TYPE {
HT_STANDARD=0,
HT_ADVANCED,

View file

@ -21,7 +21,7 @@ typedef struct {
uint32_t tagtype;
uint8_t cmdsize;
uint8_t addrsize;
uint16_t cardsize;
uint16_t cardsize;
} legic_card_select_t;
#endif // _LEGIC_H_

View file

@ -91,7 +91,7 @@ typedef struct {
uint32_t nonce;
uint32_t ar;
uint32_t nr;
uint32_t at;
uint32_t at;
uint32_t nonce2;
uint32_t ar2;
uint32_t nr2;
@ -105,7 +105,7 @@ typedef struct {
} nonces_t;
//-----------------------------------------------------------------------------
// ISO 7618 Smart Card
// ISO 7618 Smart Card
//-----------------------------------------------------------------------------
typedef struct {
uint8_t atr_len;
@ -127,7 +127,7 @@ typedef enum SMARTCARD_COMMAND {
// mc = manufactureCode
// mc1 mc2 u1 u2 u3 u4 u5 u6
// PMm = Product manufacturer
// icCode =
// icCode =
// ic1 = ROM
// ic2 = IC
// maximum response time =
@ -136,7 +136,7 @@ typedef enum SMARTCARD_COMMAND {
// B5(authenticate)
// B6(read)
// B7(write)
// B8()
// B8()
// ServiceCode 2bytes (access-rights)
// FileSystem = 1 Block = 16 bytes
@ -147,7 +147,7 @@ typedef struct {
uint8_t PMm[8];
uint8_t iccode[2];
uint8_t mrt[6];
uint8_t servicecode[2];
uint8_t servicecode[2];
} __attribute__((__packed__)) felica_card_select_t;
typedef enum FELICA_COMMAND {

View file

@ -86,9 +86,9 @@
#define LED_D_OFF() LOW(GPIO_LED_D)
#define LED_D_INV() INVBIT(GPIO_LED_D)
// SPI
#define SCK_LOW LOW(GPIO_SPCK)
#define SCK_HIGH HIGH(GPIO_SPCK)
// SPI
#define SCK_LOW LOW(GPIO_SPCK)
#define SCK_HIGH HIGH(GPIO_SPCK)
#define MOSI_HIGH HIGH(GPIO_MOSI)
#define MOSI_LOW LOW(GPIO_MOSI)
#define MISO_VALUE (AT91C_BASE_PIOA->PIO_PDSR & GPIO_MISO)
@ -106,7 +106,7 @@
#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 USB_ATTACHED() !((AT91C_BASE_PIOA->PIO_PDSR & GPIO_NVDD_ON) == GPIO_NVDD_ON)
#define VERSION_INFORMATION_MAGIC 0x56334d50
struct version_information {

View file

@ -48,7 +48,7 @@ typedef struct{
uint16_t write_gap;
uint16_t write_0;
uint16_t write_1;
uint16_t read_gap;
uint16_t read_gap;
} t55xx_config;
// For the bootloader
@ -161,7 +161,7 @@ typedef struct{
#define CMD_SIMULATE_HITAG 0x0371
#define CMD_READER_HITAG 0x0372
// For HitagS
// For HitagS
#define CMD_TEST_HITAGS_TRACES 0x0367
#define CMD_SIMULATE_HITAG_S 0x0368
#define CMD_READ_HITAG_S 0x0373
@ -202,7 +202,7 @@ typedef struct{
#define CMD_ICLASS_AUTHENTICATION 0x0399
#define CMD_ICLASS_CHECK_KEYS 0x039A
// For ISO1092 / FeliCa
// For ISO1092 / FeliCa
#define CMD_FELICA_SIMULATE_TAG 0x03A0
#define CMD_FELICA_SNOOP 0x03A1
#define CMD_FELICA_COMMAND 0x03A2
@ -253,7 +253,7 @@ typedef struct{
#define CMD_MIFARE_SNIFFER 0x0630
//ultralightC
#define CMD_MIFAREUC_AUTH 0x0724
//0x0725 and 0x0726 no longer used
//0x0725 and 0x0726 no longer used
#define CMD_MIFAREUC_SETPWD 0x0727
// mifare desfire