PoC: connect USB/serial ISR directly to the respective serial send

This assumes that USB IRQ has a lower logical prio as the UART IRQ so that it can be pre-empted by the USART ISR.
This commit is contained in:
Raphael Coeffic
2021-11-21 11:18:35 +01:00
committed by Raphael Coeffic
parent 3e390bd582
commit 96743a9fc4
4 changed files with 64 additions and 91 deletions
+4 -8
View File
@@ -27,16 +27,12 @@
#include <FreeRTOS.h>
#include <stream_buffer.h>
// CLI receive buffer size
#define CLI_RX_BUFFER_SIZE 256
// CLI receive stream buffer
extern StreamBufferHandle_t cliRxBuffer;
// Allows for switchable debug prints via CLI
extern uint8_t cliTracesEnabled;
#include "cli_traces.h"
// CLI task function
void cliStart();
// Called from receive ISR (either USB or UART)
void cliReceiveData(uint8_t* buf, uint32_t len);
#endif // _CLI_H_