Description
Source
Call Graph
Start Line: 314
int main(void)
{
unsigned char pAtr[MAX_ATR_SIZE];
unsigned char size;
// Initialize Atr buffer
memset(pAtr, 0, sizeof(pAtr));
TRACE_CONFIGURE(DBGU_STANDARD, 115200, BOARD_MCK);
printf("-- Basic ISO7816 Project %s --\n\r", SOFTPACK_VERSION);
printf("-- %s\n\r", BOARD_NAME);
printf("-- Compiled: %s %s --\n\r", __DATE__, __TIME__);
// Configure IT on Smart Card
ConfigureCardDetection();
// Configure ISO7816 driver
PIO_Configure(pinsISO7816, PIO_LISTSIZE(pinsISO7816));
ISO7816_Init(pinIso7816RstMC);
// Read ATR
ISO7816_warm_reset();
ISO7816_Datablock_ATR(pAtr, &size);
// Decode ATR
ISO7816_Decode_ATR(pAtr);
// Allow user to send some commands
SendReceiveCommands();
return 0;
}