projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae0fba
)
common: Increase size of the UART receive ringbuffer.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sat, 4 Jan 2020 17:24:44 +0000
(18:24 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 6 Jan 2020 09:45:34 +0000
(10:45 +0100)
The GPS module sends about ~380 bytes per second, which led to
overflows of our 256 byte sized ringbuffer.
src/common/uart0.c
patch
|
blob
|
history
diff --git
a/src/common/uart0.c
b/src/common/uart0.c
index 2a983eb2c1f3775369dd00fdee3bba494d9ec70b..e3105e00e36459160050752007bd1bbe577f9a85 100644
(file)
--- a/
src/common/uart0.c
+++ b/
src/common/uart0.c
@@
-25,7
+25,7
@@
#include "ringbuf.h"
-static uint8_t uart0_rx_buf_space[1 <<
8
];
+static uint8_t uart0_rx_buf_space[1 <<
9
];
struct ringbuf uart0_rx_buf =
RINGBUF_INIT (uart0_rx_buf_space, sizeof (uart0_rx_buf_space));