mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user