mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 06:08:31 +03:00
ISO7816_Init: Initialized with USART
* ISO7816_Init: Takes Usart_info and CLK_SLAVE/CLK_MASTER as param
* ISO7816_SendChar, ISO7816_GetChar: Usart_info is passed
* ISO7816_Set_Reset_Pin function for CCID part
* iso7816_4.c: BOARD_ISO7816_BASE_USART replaced by USART_SIM
* Redundant _ISO7816_Init, _ISO7816_SendChar, _ISO7816_GetChar
functions removed
* All simtrace modes use iso7816_4.c functions instead of redefined
_ISO7816_xxx functions
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "iso7816_4.h"
|
||||
#include "led.h"
|
||||
#include "cciddriver.h"
|
||||
#include "usart.h"
|
||||
#include "USBD.h"
|
||||
|
||||
#include "USBD_Config.h"
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
#include <stdbool.h>
|
||||
#include "board.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \file
|
||||
*
|
||||
@@ -67,7 +69,11 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* Exported functions
|
||||
*----------------------------------------------------------------------------*/
|
||||
extern void ISO7816_Init( const Pin *pPinIso7816RstMC, Usart *base_usart, bool master_clock );
|
||||
extern void ISO7816_Init( Usart_info *base_usart, bool master_clock );
|
||||
extern void ISO7816_Set_Reset_Pin(const Pin *pPinIso7816RstMC);
|
||||
extern uint32_t ISO7816_SendChar( uint8_t CharToSend, Usart_info *usart );
|
||||
extern uint32_t ISO7816_GetChar( uint8_t *pCharToReceive, Usart_info *usart);
|
||||
|
||||
extern void ISO7816_IccPowerOff(void);
|
||||
extern uint32_t ISO7816_XfrBlockTPDU_T0(const uint8_t *pAPDU,
|
||||
uint8_t *pMessage,
|
||||
|
||||
Reference in New Issue
Block a user