mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 03:44:30 +03:00
some code fixes, start to draw new schematic
This commit is contained in:
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user