1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

11476 Commits

Author SHA1 Message Date
Teufelchen1
e98426e5c5 sys/shell: rename shell_readline() 2025-05-24 18:28:23 +02:00
Mihai Renea
b149bfb9cb sys/shell: expose readline() 2025-05-23 10:39:36 +02:00
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
9c6820ba0c sys/include: define for XTIMER added 2025-05-19 14:01:13 +02:00
KSKNico
e6b17fa5cb sys: replace header guards with #pragma once 2025-05-16 19:40:06 +02:00
Gunar Schorcht
a8854ba2dd sys/arduino: define LED_BUILTIN as frequently used by Arduino sketches
In Arduino IDE the on-board LED pin is defined by macro `LED_BUILTIN`. It is used whenever the LED is controlled. To make it easier to use Arduino sketches as they are, `LED_BUILTIN` is defined by using @ref ARDUINO_LED as defined by the board.
2025-05-13 07:32:43 +02:00
benpicco
8a6bb51adb
Merge pull request #20992 from benpicco/netdev_ieee802154_submac-new_api
drivers/netdev_ieee802154_submac: port to netdev_new_api
2025-05-12 16:11:18 +00:00
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