some code fixes, start to draw new schematic

This commit is contained in:
Edward Emelianov
2024-03-19 23:42:48 +03:00
parent ad92546f82
commit e92a5c4234
22 changed files with 156780 additions and 20670 deletions

View File

@@ -32,6 +32,14 @@ static volatile int rbufno = 0; // current rbuf number
static char rbuf[2][UARTBUFSZ]; // receive buffers
static volatile char *recvdata = NULL;
// reset incoming buffer
void usart_rstbuf(){
linerdy = 0;
dlen = 0;
bufovr = 0;
recvdata = NULL;
}
/**
* return length of received data (without trailing zero)
*/