change to usb ringbuffer; still have veird bug using USART

This commit is contained in:
Edward Emelianov
2023-09-29 20:45:48 +03:00
parent 482b612e9f
commit b20e134180
22 changed files with 761 additions and 720 deletions

View File

@@ -38,6 +38,15 @@
#define newline() do{bufputchar('\n');}while(0)
extern volatile uint32_t lastTprint;
// cmdsource:
enum{
SRC_NONE,
SRC_USB,
SRC_USART
};
extern uint8_t noLED;
void cmd_parser(char *buf, uint8_t isUSB);
void addtobuf(const char *txt);