mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 14:58:35 +03:00
Split init into configure and init
* Implemented configure, init, exit functions:
When a configuration is changed, interrupts for reset pins
should be disabled
* Moved variables shared between code files to simtrace.h
This commit is contained in:
@@ -38,11 +38,16 @@
|
||||
|
||||
static const Pin pins_bus[] = {PINS_BUS_DEFAULT};
|
||||
|
||||
void MITM_configure( void )
|
||||
{
|
||||
Phone_configure();
|
||||
CCID_configure();
|
||||
}
|
||||
|
||||
void MITM_init( void )
|
||||
{
|
||||
CCID_init();
|
||||
Phone_Master_Init();
|
||||
Phone_init();
|
||||
|
||||
return;
|
||||
/* Configure ISO7816 driver */
|
||||
@@ -62,9 +67,14 @@ void MITM_init( void )
|
||||
*/
|
||||
}
|
||||
|
||||
void MITM_exit( void )
|
||||
{
|
||||
Phone_exit();
|
||||
CCID_exit();
|
||||
}
|
||||
|
||||
void MITM_run( void )
|
||||
{
|
||||
Phone_run();
|
||||
CCID_SmartCardRequest();
|
||||
CCID_run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user