HACK: always use the USART interrupt handler of mode_cardemu()
This must be fixed in a way that the per-configuration interrupt
handler is called, depending on the USB configuration that is set.
diff --git a/firmware/src_simtrace/simtrace_iso7816.c b/firmware/src_simtrace/simtrace_iso7816.c
index 5325bba..0c4a096 100644
--- a/firmware/src_simtrace/simtrace_iso7816.c
+++ b/firmware/src_simtrace/simtrace_iso7816.c
@@ -72,12 +72,14 @@
PIO_DisableIt( &pinPhoneRST ) ;
}
+extern void usart_irq_rx(uint8_t num);
/*
* char_stat is zero if no error occured.
* Otherwise it is filled with the content of the status register.
*/
void USART1_IrqHandler( void )
{
+#if 0
uint32_t stat;
char_stat = 0;
// Rcv buf full
@@ -107,6 +109,9 @@
char_stat = stat;
}
+#else
+ usart_irq_rx(0);
+#endif
}
/* FIDI update functions */