ADD: SmartCard skeleton
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user