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:
committed by
Raphael Coeffic
parent
3e390bd582
commit
96743a9fc4
+4
-8
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user