1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Hendrik van Essen
de4b32ef54 sys/tsrb: add tsrb_clear 2021-12-06 11:53:59 +01:00
Francisco Molina
857f3c3c51 sys/tsrb: add peek functions 2021-11-24 17:54:44 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Marian Buschsieweke
0d0b14de29
sys/tsrb: Make thread-safe
Drop the requirement of having only one writer and one reader, as the name of
the ring-buffer does not indicate any limitation on the thread-safety. The
two-threads-one-buffer kind of ring buffer can be reintroduced with a different
name.
2020-10-13 10:32:41 +02:00
Martine Lenders
937d99b5c8 tsrb: remove implicit cast in TEST_INIT() macro 2019-06-05 18:16:32 +02:00
Martine Lenders
d361fc52a0 tsrb: change input type to uint8_t
Having the input type `char` makes the output of `tsrb_get_one()`
incomparable to the input of `tsrb_add_one()`. By changing it to
`uint8_t` we not only definitively fix it to an octet, but also ensure
that the input and output are the same.
2019-06-05 17:10:26 +02:00
8d9cb25ed7
tsrb: add drop function
The get function does not support passing NULL as an input buffer. to be
able to drop bytes from the buffer, a dedicated drop function is
required
2018-08-31 10:35:02 +02:00
Joe Kroesche
abb6913480 sys/include/tsrb.h: move usage doc to main API page.
Modified file doc header so that important info about usage and buffer
size show up on main API doc page instead of file doc page;
added comment in a couple of places to remind reader that buffer size
must be powewr of 2.
2017-11-02 21:59:37 -05:00
smlng
b7eecca93c sys: fix doxygen grouping of tsrb und embUnit 2017-07-04 14:44:17 +02:00
185f63f768 sys: add thread-safe ringbuffer implementation 2015-09-25 09:08:34 +02:00