occasional tunerstudio CRC errors #1943

getting ready for unit test
This commit is contained in:
rusefillc 2020-11-15 11:53:09 -05:00
parent 842372e69a
commit 30a0082ed2
3 changed files with 8 additions and 2 deletions

View File

@ -22,8 +22,10 @@ typedef struct {
volatile int readPos; volatile int readPos;
// secondary FIFO buffer for async. transfer // secondary FIFO buffer for async. transfer
uint8_t buffer[TS_FIFO_BUFFER_SIZE]; uint8_t buffer[TS_FIFO_BUFFER_SIZE];
#if EFI_PROD_CODE || EFI_SIMULATOR
// input FIFO Rx queue // input FIFO Rx queue
input_queue_t fifoRxQueue; input_queue_t fifoRxQueue;
#endif
} uart_dma_s; } uart_dma_s;
#if TS_UART_DMA_MODE || PRIMARY_UART_DMA_MODE #if TS_UART_DMA_MODE || PRIMARY_UART_DMA_MODE

View File

@ -20,16 +20,19 @@ typedef void (*CommandHandler)(char *);
#include "efifeatures.h" #include "efifeatures.h"
#include "datalogging.h" #include "datalogging.h"
BaseChannel * getConsoleChannel(void);
void consolePutChar(int x); void consolePutChar(int x);
void consoleOutputBuffer(const uint8_t *buf, int size); void consoleOutputBuffer(const uint8_t *buf, int size);
void startConsole(Logging *sharedLogger, CommandHandler console_line_callback_p); void startConsole(Logging *sharedLogger, CommandHandler console_line_callback_p);
void onDataArrived(void); void onDataArrived(void);
bool isUsbSerial(BaseChannel * channel);
#if EFI_PROD_CODE || EFI_SIMULATOR || EFI_EGT #if EFI_PROD_CODE || EFI_SIMULATOR || EFI_EGT
bool isCommandLineConsoleReady(void); bool isCommandLineConsoleReady(void);
bool isUsbSerial(BaseChannel * channel);
BaseChannel * getConsoleChannel(void);
#else #else
#define isCommandLineConsoleReady() true #define isCommandLineConsoleReady() true
#endif #endif

1
unit_tests/svnversion.h Normal file
View File

@ -0,0 +1 @@