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

9 Commits

Author SHA1 Message Date
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
Francisco Molina
857f3c3c51 sys/tsrb: add peek functions 2021-11-24 17:54:44 +01:00
Leandro Lanzieri
fec7cd37e3
sys/tsrb: Add module to Kconfig 2020-11-06 15:57:53 +01: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
fb19b514f4 tsrb: remove now unnecessary cast
Both `unsigned char` and `uint8_t` are unsigned (and the same type on
most platforms) so this cast became redundant.
2019-06-05 17:10:26 +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
korotkoves
ecd64faeb4 tsrb: bug fix for tsrb_get_one() 2019-06-04 12:34:10 +03: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
185f63f768 sys: add thread-safe ringbuffer implementation 2015-09-25 09:08:34 +02:00