mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 06:48:34 +03:00
wait for UART Tx completion before switching baud rate at PTS
This commit is contained in:
@@ -97,6 +97,12 @@ static void wait_tx_idle(Usart *usart)
|
||||
}
|
||||
}
|
||||
|
||||
void card_emu_uart_wait_tx_idle(uint8_t uart_chan)
|
||||
{
|
||||
Usart *usart = get_usart_by_chan(uart_chan);
|
||||
wait_tx_idle(usart);
|
||||
}
|
||||
|
||||
/* call-back from card_emu.c to enable/disable transmit and/or receive */
|
||||
void card_emu_uart_enable(uint8_t uart_chan, uint8_t rxtx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user