serial_uart: Make RBUF_SIZE cutomizable
Default size 256 bytes may be too much in many cases
This commit is contained in:
parent
b3b2e23584
commit
85b69a7eab
1 changed files with 2 additions and 0 deletions
|
|
@ -63,7 +63,9 @@ void serial_init(void)
|
|||
}
|
||||
|
||||
// RX ring buffer
|
||||
#ifndef RBUF_SIZE
|
||||
#define RBUF_SIZE 256
|
||||
#endif
|
||||
static uint8_t rbuf[RBUF_SIZE];
|
||||
static uint8_t rbuf_head = 0;
|
||||
static uint8_t rbuf_tail = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue