From acd48c51f2b67502a5eed47074e0dde3cab6116d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 2 Mar 2016 10:34:24 +0100 Subject: [PATCH] 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. --- firmware/src_simtrace/simtrace_iso7816.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/src_simtrace/simtrace_iso7816.c b/firmware/src_simtrace/simtrace_iso7816.c index 5325bba4..0c4a0963 100644 --- a/firmware/src_simtrace/simtrace_iso7816.c +++ b/firmware/src_simtrace/simtrace_iso7816.c @@ -72,12 +72,14 @@ void ISR_PhoneRST( const Pin *pPin) 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 @@ void USART1_IrqHandler( void ) char_stat = stat; } +#else + usart_irq_rx(0); +#endif } /* FIDI update functions */