dynamically dispatch USART IRQs
The different modes (configurations) will have different interrupt
handlers, so we need to dispatch them via config_func_ptrs
diff --git a/firmware/src_simtrace/simtrace_iso7816.c b/firmware/src_simtrace/simtrace_iso7816.c
index e1453db..81ae980 100644
--- a/firmware/src_simtrace/simtrace_iso7816.c
+++ b/firmware/src_simtrace/simtrace_iso7816.c
@@ -78,14 +78,12 @@
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)
+void mode_trace_usart1_irq(void)
{
-#if 0
uint32_t stat;
char_stat = 0;
// Rcv buf full
@@ -115,9 +113,6 @@
char_stat = stat;
}
-#else
- usart_irq_rx(0);
-#endif
}
/* FIDI update functions */