From 85b69a7eab765a2af7185ac8f3d5657dbc02ffa1 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 14 Feb 2022 13:43:20 +0900 Subject: [PATCH] serial_uart: Make RBUF_SIZE cutomizable Default size 256 bytes may be too much in many cases --- tmk_core/protocol/serial_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmk_core/protocol/serial_uart.c b/tmk_core/protocol/serial_uart.c index 35df27fd..a3847c1b 100644 --- a/tmk_core/protocol/serial_uart.c +++ b/tmk_core/protocol/serial_uart.c @@ -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;