mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
ADD: SmartCard skeleton
This commit is contained in:
parent
e53a5452b8
commit
857bc8ab66
2 changed files with 50 additions and 0 deletions
34
armsrc/smartcard.c
Normal file
34
armsrc/smartcard.c
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
#include "smartcard.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
PA5 SIM I/O
|
||||||
|
PA7 SIM CLOCK
|
||||||
|
PA10 SIM RESET
|
||||||
|
|
||||||
|
Both RX / TX is connected to PA5
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
void SmartCardSetup(void) {
|
||||||
|
// PA5 ->
|
||||||
|
// PA7 ->
|
||||||
|
// PA10 ->
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmartCardStop(void) {
|
||||||
|
StopTicks();
|
||||||
|
Dbprintf("SmartCardStop");
|
||||||
|
LED_A_OFF();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SmartCardInit(void) {
|
||||||
|
|
||||||
|
StartTicks();
|
||||||
|
|
||||||
|
LED_A_ON();
|
||||||
|
SmartCardSetup();
|
||||||
|
|
||||||
|
Dbprintf("SmartCardInit");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
16
armsrc/smartcard.h
Normal file
16
armsrc/smartcard.h
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||||
|
// Common Instructions //
|
||||||
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||||
|
#ifndef __SMARTCARD_H
|
||||||
|
#define __SMARTCARD_H
|
||||||
|
|
||||||
|
#include "proxmark3.h"
|
||||||
|
#include "apps.h"
|
||||||
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||||
|
extern void Dbprintf(const char *fmt, ...);
|
||||||
|
|
||||||
|
void SmartCardSetup(void);
|
||||||
|
void SmartCardStop(void);
|
||||||
|
bool SmartCardInit();
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue