aux_serial: Cleaned up the receive index counters

This commit is contained in:
dragonmux 2022-08-21 14:49:42 +01:00 committed by Piotr Esden-Tempski
parent 2657594a66
commit 62b1a33188
2 changed files with 2 additions and 4 deletions

View File

@ -38,9 +38,9 @@
#include "aux_serial.h"
/* Fifo in pointer, writes assumed to be atomic, should be only incremented within RX ISR */
uint8_t aux_serial_receive_write_index;
static uint8_t aux_serial_receive_write_index;
/* Fifo out pointer, writes assumed to be atomic, should be only incremented outside RX ISR */
uint8_t aux_serial_receive_read_index;
static uint8_t aux_serial_receive_read_index;
#if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32F4)
static char aux_serial_transmit_buffer[2U][AUX_UART_BUFFER_SIZE];

View File

@ -58,6 +58,4 @@ extern uint8_t usb_dbg_out;
extern char aux_serial_receive_buffer[AUX_UART_BUFFER_SIZE];
#endif
extern uint8_t aux_serial_receive_read_index;
#endif