mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 22:38:32 +03:00
sniff: use USART 0 instead of USART 1
Use USART 0 connected to the SIM card side to sniff the communication. The card side can also measure ETU times. Do proper pin initialization. This code can already capture the ATR communication between phone and card. Change-Id: I0597ec723cb2225540c89c3821b91d8a45adfcd6
This commit is contained in:
committed by
Harald Welte
parent
2c4e2af21f
commit
45ad62d8d4
@@ -77,7 +77,6 @@ typedef struct {
|
||||
|
||||
extern const USBConfigurationDescriptor *configurationDescriptorsArr[];
|
||||
|
||||
int check_data_from_phone();
|
||||
void update_fidi(uint8_t fidi);
|
||||
|
||||
void ISR_PhoneRST( const Pin *pPin);
|
||||
@@ -109,7 +108,7 @@ extern void mode_cardemu_run(void);
|
||||
extern void MITM_run( void );
|
||||
|
||||
/* IRQ functions */
|
||||
extern void Sniffer_usart1_irq(void);
|
||||
extern void Sniffer_usart0_irq(void);
|
||||
extern void mode_cardemu_usart0_irq(void);
|
||||
extern void mode_cardemu_usart1_irq(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user