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:
Harald Welte
2016-03-02 10:34:24 +01:00
parent fcdd660fb1
commit acd48c51f2

View File

@@ -72,12 +72,14 @@ void ISR_PhoneRST( const Pin *pPin)
PIO_DisableIt( &pinPhoneRST ) ; PIO_DisableIt( &pinPhoneRST ) ;
} }
extern void usart_irq_rx(uint8_t num);
/* /*
* char_stat is zero if no error occured. * char_stat is zero if no error occured.
* Otherwise it is filled with the content of the status register. * Otherwise it is filled with the content of the status register.
*/ */
void USART1_IrqHandler( void ) void USART1_IrqHandler( void )
{ {
#if 0
uint32_t stat; uint32_t stat;
char_stat = 0; char_stat = 0;
// Rcv buf full // Rcv buf full
@@ -107,6 +109,9 @@ void USART1_IrqHandler( void )
char_stat = stat; char_stat = stat;
} }
#else
usart_irq_rx(0);
#endif
} }
/* FIDI update functions */ /* FIDI update functions */