Martine Lenders
819a4a175c
Merge pull request #20518 from miri64/gcoap/bug/quality-defects
...
gcoap: fix code quality defects
2024-03-28 09:14:14 +00:00
Karl Fessel
9d2dda27ce
Merge branch 'master' into cpu/samd5x-write-CAN-driver
2024-03-28 09:52:26 +01:00
Martine S. Lenders
c05474cdea
gcoap: fix function indentation after change of static inline
2024-03-28 09:25:27 +01:00
Martine S. Lenders
a6d5500a88
gcoap: fix reference for gcoap_socket_type_t
2024-03-28 09:24:57 +01:00
Martine Lenders
810f1a98cb
gnrc_lorawan: Remove gnrc_nettype_lorawan
dependency
...
With the removal of `CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR` it does not
use `GNRC_NETTYPE_LORAWAN` anymore, so this module is not required
anymore.
2024-03-28 09:19:35 +01:00
Martine Lenders
549f215701
gnrc_nettype: deprecate GNRC_NETTYPE_LORAWAN
2024-03-28 09:19:35 +01:00
Martine Lenders
5c75f84d6e
gnrc_netif: remove deprecated CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR
2024-03-28 09:19:33 +01:00
Martine Lenders
a2e3ca07cb
Merge pull request #20514 from miri64/gcoap/cleanup/gcoap_req_send_aliasing
...
gcoap: make gcoap_req_send_tl() an alias of gcoap_req_send()
2024-03-27 17:00:50 +00:00
Marian Buschsieweke
04620d471c
Merge pull request #20438 from MrKevinWeiss/pr/kconfig/dep/removal
...
Remove Kconfig dependency modelling
2024-03-27 16:39:56 +00:00
Karl Fessel
568d60720f
sys/auto_init/can: include board periph_conf.h
2024-03-27 14:52:05 +01:00
Martine Lenders
27308585c3
gcoap: make gcoap_req_send_tl() an alias of gcoap_req_send()
...
As per the deprecation notice from July 2021 ;-).
2024-03-27 12:21:57 +01:00
Marian Buschsieweke
45c473d721
sys/vfs: use atomic_utils rather C11 atomics
...
This has the following advantages:
- faster and leaner when C11 atomics are not efficient (e.g. on LLVM
this is almost always the case, as LLVM will only use efficient
atomics if it doesn't has to bail out to library calls even for
exotic things)
- Even for GCC e.g. on the nucleo-f429zi this safes 72 B of .text
for examples/filesystem despite runtime checks added for
over- and underflow
- less pain in the ass for C++ and rust users, as both C++ and
c2rust are incompatible with C11 atomics
- adds test for overflow of the open file counter for more robust
operation
- adds `assumes()` so that underflows are detected in non-production
code
2024-03-27 11:26:15 +01:00
Martine Lenders
653417d895
gnrc_gomach: deprecate module
2024-03-27 11:07:31 +01:00
Martine Lenders
2deb8882dd
gnrc_lwmac: deprecate module
2024-03-27 11:07:12 +01:00
Martine Lenders
0acb666da6
gnrc_mac: deprecate module
2024-03-27 10:50:23 +01:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model
2024-03-27 10:28:12 +01:00
mguetschow
edefdb78ee
Merge pull request #20460 from Einhornhool/pr/psa-use-csprng
...
sys/psa_crypto: use SHA256 CSPRNG as default
2024-03-26 19:04:27 +00:00
benpicco
222a2e1d99
Merge pull request #20478 from mariemC/Mariem/dtls_default_user_params_fix
...
pkg/tinydtls: enforce the default dtls user params to be configurable
2024-03-26 17:48:08 +00:00
Lena Boeckmann
1924b063ec
sys/psa_crypto: use SHA256 CSPRNG as default
2024-03-26 17:05:58 +01:00
Martine Lenders
4059244388
Merge pull request #16502 from francois-berder/remove-code-duplication
...
sys/net/gnrc: Remove code duplication
2024-03-26 16:01:42 +00:00
Francois Berder
9056e14e74
gnrc/gomach: Reduce code duplication
...
The function gomach_vtdma_end is nearly identical to _no_vtdma_after_cp
expect the first few lines. This commit replaces the duplicating code
in gomach_vtdma_end by a call to _no_vtdma_after_cp.
Signed-off-by: Francois Berder <fberder@outlook.fr>
2024-03-26 15:30:56 +01:00
Francois Berder
7523bb08a3
gnrc/lwmac: Reduce code duplication
...
Both _rx_management_failed and _rx_management_success functions
attempt to sleep after handling the packet reception
failure/success. This commit extracts the sleep attempt in a
new _rx_management_attempt_sleep function.
Signed-off-by: Francois Berder <fberder@outlook.fr>
2024-03-26 15:30:56 +01:00
Firas Hamdi
a40735a0e1
sys/include/can: include mailbox feature
2024-03-26 15:17:48 +01:00
Kevin "Tristate Tom" Weiss
29a756bf2a
Merge pull request #18684 from chrysn-pull-requests/rust-easier-updates
...
rust: Make dependencies visible
2024-03-26 14:15:52 +00:00
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files
2024-03-26 14:54:22 +01:00
MrKevinWeiss
0a9c51fdf9
*.config: Modify all .config kconfig files
2024-03-26 14:53:40 +01:00
Marian Buschsieweke
a9d052bc32
Merge pull request #20363 from mguetschow/malloc-monitor
...
Monitoring malloc usage
2024-03-26 10:58:33 +00:00
Mikolai Gütschow
f31f82042a
sys: add malloc_monitor, deprecate malloc_tracing
2024-03-26 10:00:24 +01:00
Marian Buschsieweke
1b64abf7dc
Merge pull request #20485 from dylad/pr/treewide/remove_deprecated_shell_commands
...
treewide: remove deprecated shell_commands module
2024-03-26 08:39:26 +00:00
Teufelchen
4982049904
Merge pull request #20484 from mguetschow/hashes-sha512-trunc
...
sys/hashes: support for SHA-{384,512/{224,256}}
2024-03-25 11:48:22 +00:00
Mikolai Gütschow
9300007cf1
sys/hashes: support for SHA-{384,512/{224,256}}
...
pkg/esp32_sdk: rename sha384_init to avoid name clash
2024-03-25 12:35:10 +01:00
Marian Buschsieweke
3d13f1fd19
Merge pull request #20499 from benpicco/coap_build_hdr-const
...
nanocoap: allow token to be const in coap_build_hdr()
2024-03-22 15:35:38 +00:00
Benjamin Valentin
6154c1270d
nanocoap: allow token to be const in coap_build_hdr()
2024-03-22 16:02:45 +01:00
mariemC
863fe9b50b
sys/include/net/sock: add Macros for dtls extensions
2024-03-22 12:19:15 +01:00
MrKevinWeiss
575ab684fe
sys/net/coap: cast in non-config define
...
If we try to set the compile-time config we need to always remember casting, instead, just cast in the places that are not exposed to users
2024-03-21 14:26:45 +01:00
chrysn
a5c9ac2e95
rust: Make dependencies visible
...
The Cargo.lock of rust_riotmodules_standalone should explicitly list all
versions of software that would ever be pulled in by enabling RIOT
modules backed by a Rust crate. That way, the Cargo.lock file will not
spontaneously change because the software is being built with a
different set of modules enabled.
This did not happen before, because while the optional dependencies
could all be selected on the command line, they were not visible as
possible features to `cargo update`, and were thus not encoded in the
Cargo.lock file.
2024-03-20 19:46:11 +10:00
chrysn
d8e693c238
Merge pull request #20489 from chrysn-pull-requests/riot-updates-before-2024.04
...
Rust updates for 2024.04
2024-03-20 09:31:52 +00:00
chrysn
a0ee4def10
rust: Selectively update riot-wrappers
...
Changes pulled by this are:
* optimizations around panicking <https://github.com/RIOT-OS/rust-riot-wrappers/pull/82 >
* administrative changes (CI fixes)
2024-03-20 16:00:08 +10:00
chrysn
7e8031fd80
rust: Update non-RIOT dependencies
...
All changes appear to be minor; some crates that were previously part of
the build dependencies twice can now be shared between build
dependencies.
2024-03-20 16:00:02 +10:00
chrysn
e8c28ef536
rust: Selectively update riot-sys
...
Changes pulled by this are:
* add hashes to riot-sys headers <https://github.com/RIOT-OS/rust-riot-sys/pull/43 >
* administrative changes (riot-sys 0.7.11, CI fixes)
2024-03-20 15:59:57 +10:00
Marian Buschsieweke
4caa3bc25e
Merge pull request #20483 from maribu/sys/tiny_strerror/llvm
...
sys/tiny_strerror: fix compilation on LLVM
2024-03-19 19:38:50 +00:00
benpicco
e3ce765a04
Merge pull request #20191 from benpicco/coap_get_method
...
nanocoap: introduce coap_get_method()
2024-03-19 18:20:31 +00:00
Marian Buschsieweke
7775fa7de5
sys/tiny_strerror: fix compilation on LLVM
...
Mixing address spaces is something LLVM doesn't like (for good
reason). This re-organized the code a bit so that this does not
happen anymore, even on AVR.
Split out of https://github.com/RIOT-OS/RIOT/pull/16924
2024-03-19 16:12:18 +01:00
Dylan Laduranty
f78a41f1b3
treewide: replace shell_commands module in documentation
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-19 15:12:02 +01:00
Dylan Laduranty
dcc732ac36
treewide: remove deprecated module shell_commands
...
Replaces it by shell_cmds_default where needed
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-19 15:10:51 +01:00
Teufelchen
741d6b3d4a
Merge pull request #20048 from leandrolanzieri/pr/tinydtls/check_public_key
...
net/sock_dtls: add public key verification
2024-03-19 10:32:16 +00:00
Dylan Laduranty
9e2a2e4765
Merge pull request #20471 from dylad/pr/treewide/remove_deprecation
...
treewide: remove deprecated modules
2024-03-19 08:12:29 +00:00
Leandro Lanzieri
868d8390f4
sys/net/sock_dtls: add public key verification
2024-03-19 07:44:50 +01:00
a365a97f2f
Merge pull request #20475 from dylad/pr/usbus/fix_get_status_response
...
sys/usbus: answer get_status if request is standard type
2024-03-18 20:52:03 +00:00
Dylan Laduranty
05220c61dd
treewide: remove deprecated sha256sum module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:53 +01:00
Dylan Laduranty
035c965cb9
treewide: remove deprecated sha1sum module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:53 +01:00
Dylan Laduranty
b246f63aff
treewide: remove deprecated random_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:44 +01:00
Dylan Laduranty
26058cf14e
treewide: remove deprecated nice module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-18 21:31:03 +01:00
mguetschow
3aaea1a74e
Merge pull request #20459 from benpicco/event_periodic_callback_create
...
event_periodic_callback: add event_periodic_callback_create()
2024-03-18 15:03:17 +00:00
Benjamin Valentin
408218f631
nanocoap_sock: support build with IPv4
2024-03-17 17:39:44 +01:00
Benjamin Valentin
3e3f18eeda
sys/net/sock: add sock_udp_ep_is_v6()
2024-03-17 17:38:58 +01:00
Dylan Laduranty
f44ef812d3
sys/usbus: answer get_status if request is standard type
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-17 16:47:07 +01:00
Dylan Laduranty
dac4d460b4
treewide: remove deprecated md5sum module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 22:02:22 +01:00
Dylan Laduranty
d6e6c4f7a1
treewide: remove deprecated i2c_scan module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 22:00:00 +01:00
Dylan Laduranty
5a2e5d7301
treewide: remove deprecated heap_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:57:22 +01:00
Dylan Laduranty
5b3b426678
treewide: remove deprecated gnrc_udp_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:54:09 +01:00
Dylan Laduranty
1bbb020fe2
treewide: remove deprecated gnrc_netif_cmd_lora module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:50:23 +01:00
Dylan Laduranty
67b8c6709c
treewide: remove deprecated gnrc_pktbuf_cmd module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:48:29 +01:00
Dylan Laduranty
6796b93fc9
treewide: remove deprecated gnrc_netdev_default module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-14 21:42:12 +01:00
Benjamin Valentin
2bef44bd6b
event_periodic_callback: fix typo
2024-03-12 18:35:42 +01:00
Benjamin Valentin
6f604a8137
event_periodic_callback: add event_periodic_callback_create()
2024-03-12 11:06:37 +01:00
Benjamin Valentin
233902b3d5
gnrc/ipv6_auto_subnets: clarify documentation
2024-03-05 17:32:39 +01:00
Benjamin Valentin
a613ff5831
sys/embunit: return failure state in TestRunner_end()
2024-03-04 14:30:45 +01:00
Benjamin Valentin
446509c177
gcoap_fileserver: use coap_get_method()
2024-02-28 11:49:56 +01:00
Benjamin Valentin
2e7cdfb345
nanocoap: introduce coap_get_method()
2024-02-28 11:49:56 +01:00
Benjamin Valentin
1f1d7082a5
sys/slot_aux: add build system integration for AUX slot
2024-02-28 11:49:05 +01:00
chrysn
6714a77026
Merge pull request #20339 from chrysn-pull-requests/native64-rust
...
cpu/native: Enable Rust on 64bit
2024-02-23 10:41:47 +00:00
chrysn
198bd67bc3
rust: Selectively update riot-sys and -wrappers
...
This pulls in <https://github.com/RIOT-OS/rust-riot-sys/pull/40 > and
<https://github.com/RIOT-OS/rust-riot-wrappers/pull/80 >.
2024-02-23 11:23:04 +01:00
xnumad
23d3ccde6b
gnrc_ipv6_nib: Ignore PIO with on-link flag
2024-02-22 17:52:17 +01:00
benpicco
9504e07378
Merge pull request #20392 from maribu/sys/newlib_syscalls_default
...
sys/newlib_syscalls_default: fix race condition in __sinit()
2024-02-20 12:22:24 +00:00
Marian Buschsieweke
609ad44f39
Merge pull request #20245 from benpicco/nanocoap_sock-pathquery
...
nanocoap_sock: always use coap_opt_put_uri_pathquery()
2024-02-19 18:28:38 +00:00
chrysn
756a384442
makefiles, treewide: Remove MCU variable
2024-02-18 20:46:09 +01:00
Marian Buschsieweke
375aed13e6
sys/newlib_syscalls_default: fix race condition in __sinit()
...
This eagerly calls `__sinit()` instead of lazy initialization upon the
first call to stdio (e.g. `puts()`, `printf()`). The issue is that
without locking (as is currently the case for all RIOT platforms but
ESP) two concurrent "first calls" may result in concurrent
initialization of the same structure and data corruption.
Fixes https://github.com/RIOT-OS/RIOT/issues/20067
2024-02-16 07:21:28 +01:00
chrysn
a05cfcf6ed
Merge pull request #20389 from chrysn-pull-requests/thread-links
...
doc: Link OpenThread primer, cleanup
2024-02-14 18:42:30 +00:00
chrysn
41816ed647
doc: Link to thread primer
2024-02-14 17:44:13 +01:00
Leandro Lanzieri
7745e233b3
Merge pull request #20073 from MichelRottleuthner/pr_gcoap_observe_improvments
...
gcoap: add some client-side observe handling
2024-02-14 10:01:31 +00:00
benpicco
d08fb3f144
Merge pull request #20043 from bergzand/pr/nanocoap_cache_options
...
nanocoap/cache: Extend with option-only cache keygen
2024-02-13 15:23:59 +00:00
011891b9cf
nanocoap/cache: Extend with option-only cache keygen
...
To generate cache keys based on only the options of a request. This for
matching requests of a blockwise transfer with each other
2024-02-12 21:20:39 +01:00
benpicco
55b6728224
Merge pull request #19738 from benpicco/stdio_dispatch
...
stdio_dispatch: allow to select multiple stdio methods at the same time
2024-02-09 16:13:27 +00:00
Benjamin Valentin
2d22cc8f49
sys/net/telnet: disable local echo
2024-02-09 15:31:21 +01:00
Benjamin Valentin
550d93f873
sys/net/telnet: properly detect disconnect
2024-02-09 15:31:21 +01:00
Benjamin Valentin
816aafdb5a
sys/net/telnet: fix race condition on disconnect
2024-02-09 15:31:21 +01:00
Benjamin Valentin
f5181732de
sys/fmt: don't include stdio_base.h
2024-02-09 15:31:21 +01:00
Benjamin Valentin
028f6e54f6
stdio_semihosting: port to new interface
2024-02-09 15:31:21 +01:00
Benjamin Valentin
b575e2d35b
stdio_telnet: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
c1b6c813ae
stdio_nimble: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
8bec71331c
stdio_null: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
68c8a9a3a2
sys/usb/cdc/acm: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
76997fdd76
stdio_rtt: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
7c1cdb16af
stdio_udp: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
cce5312be8
stdio_uart: port to new interface
2024-02-09 15:24:22 +01:00
Benjamin Valentin
c1162e4818
sys/stdio: add common stdio module
2024-02-09 15:24:22 +01:00
mguetschow
de1efc6772
Merge pull request #20344 from Teufelchen1/chore/fmt_test_3
...
tests: Add NULL pointer argument test for fmt_lpad/to_lower/str
2024-02-09 10:41:17 +00:00
Teufelchen1
dbcfa1bdc8
tests: Add NULL pointer argument test for fmt_lpad/to_lower/str
2024-02-09 11:03:05 +01:00
Joshua DeWeese
c3a4beb200
treewide: make use of new IPv4 static init macro
...
This commit makes use of the newly added static initializer for IPv4
addresses.
2024-02-08 10:14:24 -05:00