1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 19:13:51 +01:00

12 Commits

Author SHA1 Message Date
Marian Buschsieweke
cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00
KSKNico
e6b17fa5cb sys: replace header guards with #pragma once 2025-05-16 19:40:06 +02:00
Joshua DeWeese
0f7c6a8481 sys/isrpipe: emphasize buffer size requirement
This patch makes the requirement on buffer size more prominent.
Additionally, it adds the missing argument to the doxygen block of the
static initializer. Finally, it chanes the argument name passed to the
static intializer to decouble the API from the implmentation details.
2025-04-08 20:55:38 -04:00
Joshua DeWeese
4d39d6e2f3 sys/isrpipe: fix init of mutex
The mutex used to sync the reader and writer of the pipe is initialized
as unlocked. This results in a bit of wasted CPU cycles the first time a
read blocks. This patch inits the mutex in a locked state so that the
first blocking read blocks immediately.
2025-04-08 20:17:04 -04:00
Hendrik van Essen
774e765d59 sys/isrpipe: add isrpipe_write 2021-12-07 13:00:58 +01:00
Martine Lenders
d9049dad87 isrpipe: change API to be in line with tsrb
The API of `tsrb` was changed because of confusing type situations.
This API change takes this API change of changing `char` to `uint8_t`
up a level. Since `isrpipe` most often is used together with
`periph_uart` this change even is beneficial, as `periph_uart` also
uses `uint8_t` instead of `char`.
2019-06-05 18:13:57 +02:00
Martine Lenders
dfc8bbd96c isrpipe: adapt for tsrb API type change 2019-06-05 17:10:27 +02:00
Gaëtan Harter
b07eecd619
isrpipe: split isrpipe_read_timeout to isolate xtimer dependency
This defines a new 'isrpipe_read_timeout' module that should be used when using
the timeout based function of isrpipe.

This fix the implicit dependency to 'xtimer' that is only needed for the
'_timeout' functions.

It prevents 'stdio_uart' that uses 'isrpipe' to need to depend on xtimer.
This was silently solved at link time for most platforms but not for the
'esp32' for example.

'drivers/at' needed to be updated at the same time to follow the api change.
2019-03-26 21:36:24 +01:00
Unknown
11fff4e729 drivers/isrpipe: changed isrpipe_t content order 2018-05-30 10:18:16 +02:00
Vincent Dupont
cbe3269078 isrpipe: fix timeout unit in doc 2018-02-28 10:02:03 +01:00
Ludwig Knüpfer
d0de9aac7b sys/isrpipe: fix group
- create group for isrpipe instead of adding it to sys directly
- alter file description accordingly
2016-12-20 20:47:27 +01:00
b89d81fdba sys: add isrpipe 2016-12-16 09:48:08 +01:00