1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

11468 Commits

Author SHA1 Message Date
jon
0c6b3f63ba typo \'transition\' fixed as \'transmission\' 2025-05-08 12:21:33 +02:00
Marian Buschsieweke
a71c3a1464
Merge pull request #21468 from maribu/sys/embunit/fix-return-value
sys/embunit: fix return value on failure
2025-05-07 05:29:01 +00:00
Marian Buschsieweke
b0ec60c2d5
sys/embunit: fix return value on failure
When using `OUTPUT=COLORTEST` the return value of the unit test's
`main()` on failure was `0`, while it should be `1`. As a result,
running the unit tests from a script using

    $ OUTPUT=COLORTEXT make BOARD=native64 RIOT_TERMINAL=native -j32 flash term -C tests/unittests

would not catch a test failure.

This commit changes the behavior so that `0` is returned on success
and `1` on failure for both regular and colored text output.
2025-05-06 18:54:27 +02:00
Benjamin Valentin
a08a0814f9 sys/net/sockutil: Do not use undefined structs
sock_tcp_ep_t may not be defined if sock_tcp is not used.
2025-05-06 15:05:02 +02:00
benpicco
c937969224
Merge pull request #21419 from maribu/sys/net/sock_util
sys/net/sock_util: Do not depend on network stack
2025-05-05 17:18:46 +00:00
Marian Buschsieweke
41c8f5112b
sys/net/sockutil: use #pragma once
Co-authored-by: benpicco <benpicco@googlemail.com>
2025-05-05 18:09:29 +02:00
Marian Buschsieweke
62e553ad6c
sys/net/sock_util: Do not depend on network stack
This allows using and compiling the URL handling functions of sock_util
without a network stack used.

Co-authored-by: benpicco <benpicco@googlemail.com>
2025-05-05 18:09:22 +02:00
Marian Buschsieweke
bf8c734f98
Merge pull request #21459 from maribu/sys/stdio/doc
sys/stdio: better document configuration
2025-05-01 10:06:50 +00:00
Marian Buschsieweke
3d5fad5aa1
sys/stdio: better document configuration
This changes the documentation of how to configure stdio, especially
with regard on how to configure the stdio frontends with
`printf_float`, `printf_long_long`, and `stdin`.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-05-01 11:54:15 +02:00
benpicco
217ab247f6
Merge pull request #21440 from derMihai/mir/unsigned_set_clear
sys/atomic_utils: add bit set/clear helpers for unsigned int
2025-04-30 15:41:43 +00:00
Benjamin Valentin
26ddb2e6e3 sys/event: make debug output of event_loop_debug more useful 2025-04-30 14:44:41 +02:00
benpicco
d973ca18a9
Merge pull request #21437 from benpicco/CONFIG_GNRC_IPV6_NIB_SOL_ROUTER
gnrc/ipv6/nib: add option to disable router solicitations
2025-04-28 16:08:10 +00:00
Mihai Renea
7541ef3180 sys/atomic_utils: add bit set/clear helpers for unsigned int 2025-04-28 15:26:04 +02:00
Benjamin Valentin
989d8485de gnrc/ipv6/nib: convert conf.h to new indentation style 2025-04-28 14:12:49 +02:00
Marian Buschsieweke
0be58f6e3a
sys/picolibc_syscalls_default: fix linking with 1.8.10+
This adapts to an API change for providing stdin/stdout/stderr: The
macro to test whether globals are to be used is now prefixed with two
underscores.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-27 22:59:33 +02:00
Marian Buschsieweke
1b70a59ded
tree-wide: add the NONSTRING attribute where needed
This declares all char arrays that intentionally are lacking the
terminated zero byte as `NONSTRING`.
2025-04-27 22:49:22 +02:00
Marian Buschsieweke
fba75da03f
Merge pull request #21439 from maribu/pkg/mpaland-printf/fix-float
pkg/mpaland-printf: fix overriding printf with printf_float
2025-04-26 19:00:43 +00:00
Marian Buschsieweke
a862dc6794
Merge pull request #21428 from benpicco/sys/bcd_buf_from_str
sys/bcd: add `bcd_buf_to_u32()` and `bcd_buf_from_str()`
2025-04-26 14:02:28 +00:00
Marian Buschsieweke
7caf2066d8
pkg/mpaland-printf: fix overriding printf with printf_float
This makes sure that newlib's printf is correctly overridden by:

1. Adding wrappers for some more obscure printf() variants
2. Forcing a compilation failure when newlib's stdio is still linked in
   while mpaland-printf is used
3. Not adding `-u _printf_float` to the linker flags when mpaland-printf
   is used.
2025-04-26 15:28:17 +02:00
Benjamin Valentin
2c43918792 sys/bcd: add bcd_buf_to_u32() and bcd_buf_from_str() 2025-04-25 18:48:18 +02:00
benpicco
c0439fc601
Merge pull request #21433 from benpicco/swprintf-doxygen
sys/string_utils: make `swprintf()` appear in doc
2025-04-25 07:42:50 +00:00
Benjamin Valentin
ba23c77a4d gnrc/ipv6/nib: add option to disable router solicitations 2025-04-25 00:23:00 +02:00
crasbe
d3b266059d
Merge pull request #21429 from maribu/sys/atomic_utils/unsigned
sys/atomic_utils: add helpers for unsigned int
2025-04-24 14:05:22 +00:00
Benjamin Valentin
2377e758c1 sys/string_utils: make swprintf() appear in doc 2025-04-24 15:49:59 +02:00
Marian Buschsieweke
e258a07c93
sys/atomic_utils: add helpers for unsigned int
So far, the atomic utils only support known width integer types. This
adds `unsigned int` to the supported list by mapping it to the
corresponding fixed width integer type.

This also sneaks in a few minor style fixes that clang-tidy frowned
upon.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-24 12:23:00 +02:00
Marian Buschsieweke
d9e326b2cd
Merge pull request #21426 from benpicco/shell/cmds/vfs-permission
shell/vfs: set proper file permissions
2025-04-23 17:05:46 +00:00
Benjamin Valentin
b66155e631 shell/vfs: set proper file permissions 2025-04-23 16:28:53 +02:00
Marian Buschsieweke
3bfdaeba87
Merge pull request #21422 from benpicco/suit_worker_trigger
sys/suit: don't block in suit_worker_trigger()
2025-04-23 13:46:29 +00:00
Benjamin Valentin
aefa8ab20c sys/suit: don't block in suit_worker_trigger() 2025-04-23 14:18:47 +02:00
Marian Buschsieweke
5c0f1e645b
sys/embUnit: add IWYU pragmas
This will fix false positives for unused includes in the unit tests
with clangd.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-23 13:50:33 +02:00
Marian Buschsieweke
7ecf028bb2
Merge pull request #21416 from Teufelchen1/fix/saul_cmd
shell/saul: Rename internal functions
2025-04-16 19:20:05 +00:00
Teufelchen1
38b0287164 shell/saul: Rename internal functions 2025-04-16 16:49:19 +02:00
Marian Buschsieweke
25b8d65f68
sys/ztimer: make use of periph_timer_query_freqs
This makes use of the `periph_timer_query_freqs` feature:

1. It does choose the closest frequency supported before calling
   timer_init() in the ztimer_periph_timer backend.
2. It does make use of the actually chosen frequency when using
   `ztimer_convert_frac`.
3. It does `assert()` the frequency is within 5% of the specified when
   no frequency conversion is performed or `ztimer_convert_shift_up`
   is used.
2025-04-15 15:10:07 +02:00
fabian18
db0f497c61
Merge pull request #21391 from fabian18/pr/fmt_time
sys/fmt: add {fmt,scn}_time_tm_iso8601
2025-04-10 19:28:17 +00:00
Fabian Hüßler
0f81f50e3a sys/fmt: add functins for ISO 8601 date and time 2025-04-10 16:42:24 +02:00
Marian Buschsieweke
4ce7ab2133
tree-wide: fix documentation issues
This should fix compilation with -Wdocumentation on LLVM.
2025-04-10 13:37:13 +02:00
mguetschow
e372d802a6
Merge pull request #21393 from maribu/sys/psa_crypto/drop-bogus-doc
sys/psa_crypto: drop no-op Doxygen statements
2025-04-10 08:15:44 +00:00
Joshua DeWeese
dcf71b510d
Merge pull request #21344 from Enoch247/fix-isrpipe
sys/isrpipe: unit tests, doc, and fix init
2025-04-09 23:56:03 +00:00
Joshua DeWeese
0d95b78436 sys/ztimer: add hint for setting static sleep adjustment
This patch adds a hint to users for how to set
CONFIG_ZTIMER_USEC_ADJUST_SLEEP. The doc for
CONFIG_ZTIMER_USEC_ADJUST_SET already contained a similar hint.
2025-04-09 16:16:10 -04:00
Marian Buschsieweke
51ed6f7093
sys/psa_crypto: drop no-op Doxygen statements
This drops a lot of "no-op" Doxygen statements, such as
`@param foo <description>` where `<description>` is the empty string.

This now also provides no documentation, but a lot more compact.
2025-04-09 20:50:17 +02:00
Marian Buschsieweke
33988b12ac
Merge pull request #21388 from maribu/cpu/native/can
sys/can: fix compilation issues under native
2025-04-09 11:21:06 +00:00
mguetschow
72409541be
Merge pull request #21383 from mguetschow/rust-bump
treewide: update riot-wrappers and riot-sys
2025-04-09 11:10:07 +00:00
Marian Buschsieweke
5a3ea35767
sys/Makefile.dep: clean up
Drop dead statement
2025-04-09 13:10:06 +02:00
Marian Buschsieweke
747d5fb00d
sys/can: depend on libsocketcan for (native%)
Since `can.h` is including `libsocketcan.h` on `native%`, we need to
depend on that package.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-09 13:10:06 +02:00
Joshua DeWeese
5b7c5b232c sys/tsrb: 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.
2025-04-08 20:55:38 -04:00
Joshua DeWeese
2c8e80d474 sys/isrpipe: clarify state after timeout
This patch documents what happens when a timeout occurs when
isrpipe_read_all_timeout() has been called.
2025-04-08 20:55:38 -04: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
mguetschow
d5672d02ea
Merge pull request #21385 from mguetschow/deprecated-gcoap
sys/net/gcoap: remove deprecated gcoap_req_send_tl()
2025-04-08 14:58:34 +00:00
mguetschow
2fd13d32de
Merge pull request #21387 from mguetschow/deprecated-vfs-iterate
sys/vfs: remove deprecated `vfs_iterate_mounts()`
2025-04-08 14:58:26 +00:00