usbuart: Renamed tx_trfr_cplt -> aux_serial_transmit_complete

This commit is contained in:
dragonmux 2022-08-19 17:24:01 +01:00 committed by Piotr Esden-Tempski
parent 070e53a69b
commit 4ec95994a7
3 changed files with 5 additions and 6 deletions

View File

@ -114,9 +114,9 @@ void aux_serial_send(const size_t len)
aux_serial_transmit_buffer_consumed += len;
/* If DMA is idle, schedule new transfer */
if (len && tx_trfr_cplt)
if (len && aux_serial_transmit_complete)
{
tx_trfr_cplt = false;
aux_serial_transmit_complete = false;
aux_serial_switch_transmit_buffers();
/* Enable LED */

View File

@ -41,8 +41,7 @@ void debug_uart_run(void);
#define RX_FIFO_SIZE (USART_DMA_BUF_SIZE)
#define TX_BUF_SIZE (USART_DMA_BUF_SIZE)
/* TX transfer complete */
extern bool tx_trfr_cplt;
extern bool aux_serial_transmit_complete;
/* RX Fifo buffer with space for copy fn overrun */
extern char buf_rx[RX_FIFO_SIZE + sizeof(uint64_t)];
/* RX Fifo out pointer, writes assumed to be atomic */

View File

@ -50,7 +50,7 @@
#endif
/* TX transfer complete */
bool tx_trfr_cplt = true;
bool aux_serial_transmit_complete = true;
/* RX Fifo buffer with space for copy fn overrun */
char buf_rx[RX_FIFO_SIZE + sizeof(uint64_t)];
/* RX Fifo out pointer, writes assumed to be atomic */
@ -263,7 +263,7 @@ void USBUSART2_ISR(void)
else \
{ \
usbuart_set_led_state(TX_LED_ACT, false); \
tx_trfr_cplt = true; \
aux_serial_transmit_complete = true; \
} \
\
nvic_enable_irq(USB_IRQ); \