aux_serial: Cleaned up the receive index counters
This commit is contained in:
parent
2657594a66
commit
62b1a33188
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue