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

7210 Commits

Author SHA1 Message Date
Marian Buschsieweke
1c8beb6f44
Merge pull request #21248 from mguetschow/tests-suit-flashpage
tests/sys/suit_manifest: remove unnecessary custom native board
2025-03-11 20:45:54 +00:00
benpicco
1e29887660
Merge pull request #21219 from benpicco/event/periodic_callback
sys/event: add `event_deferred_callback_post()` helper
2025-02-28 12:49:57 +00:00
Mikolai Gütschow
37053e1de0
tests/sys/suit_manifest: remove unnecessary custom native board 2025-02-26 09:04:59 +01:00
lulu254b
daf814e9f9 pkg/driver_cryptocell_310: allow data to be in ROM on hash update 2025-02-24 13:31:41 +01:00
chrysn
0e6f92eba1 rust: Remove explicit panic=abort in Cargo.toml 2025-02-22 00:10:02 +01:00
chrysn
c3ebae38f7 examples/rust: Simplify Makefiles
The APPLICATION_RUST_MODULE declaration is moved to a more prominent
position, given that it is now not part of a cesspool of boilerplate any
more.
2025-02-21 23:52:11 +01:00
Oleg Hahm
4d41dda9a7
Merge pull request #21221 from mguetschow/examples-names-short
examples: shorten subfolders' names
2025-02-21 09:07:48 +00:00
Mikolai Gütschow
9a45c30222
examples: shorten subfolders' names 2025-02-21 09:55:24 +01:00
benpicco
f67055c3b2
Merge pull request #19668 from benpicco/ieee802154_symbol_time_on_demand
ieee802154/submac: calculate symbol time on demand
2025-02-20 12:04:10 +00:00
mguetschow
88f2e451ca
Merge pull request #21223 from crasbe/pr/adc_test
tests/adc: always test all resolutions
2025-02-20 10:08:28 +00:00
krzysztof-cabaj
a2dfd78b27 treewide: fix double the in doc and comments 2025-02-18 13:25:02 +01:00
crasbe
1cb67eedba tests/adc: always test all resolutions 2025-02-18 11:15:17 +01:00
Benjamin Valentin
b20f8cb719 tests/event_periodic_callback: test for event_deferred_callback_post() 2025-02-17 13:04:09 +01:00
Mikolai Gütschow
ca5fe72bf8
treewide: fix example references in docs
adapt to folder structure from #21135
2025-02-14 19:14:22 +01:00
AnnsAnn
55fa531e02 examples: restructure to use subfolders based on README structure
examples: Fix incorrect category heading

examples: shorten coap folder name

static-tests/examples: check subfolders for entries

ci/test_native: Adjust to new examples structure

examples: adjust makefiles to new structure

ci/tests: Fix symlinks to point towards proper examples
2025-02-13 11:54:09 +01:00
benpicco
837bc0c5ed
Merge pull request #20428 from cogip/fdcan
can: add CAN FD support to STM32G4 and native architecture
2025-02-10 16:31:39 +00:00
Gilles DOFFE
27fca7748a tests/drivers/candev: rework blacklisted boards
Update BOARD_INSUFFICIENT_MEMORY, stm32f030f4-demo is now usable with
candev example.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-02-10 17:20:58 +01:00
Gilles DOFFE
fb0fd7d30e tests/sys/conn_can: rework blacklisted boards
Several boards have been removed from the exclusion list to reassess
their compatibility. This updates test coverage while keeping only truly
incompatible boards excluded.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-02-10 17:15:46 +01:00
Marian Buschsieweke
e22e357374
tests/unittests: add hack for nanocoap
nanocoap depends on sock_udp, which in turn needs `sock_types.h` to be
available. When no network stack is in use, that sadly is not the case.
To work around the issue, we just manually add the include paths if
`gnrc_sock` is not used.

This fixes an issue with compilation of only the nanocoap unit tests
without also including the GNRC tests.
2025-02-05 15:01:47 +01:00
Gilles DOFFE
0bf08aa89b tests/conn_can: make test support CAN FD
Increase Shell buffer size for 64 bytes payload length of CAN FD frame.
This also implies to increase main thread stack size and especially for
native architectures.
Add two new sub-commands to test_can command:
* fdsend: to send a CAN FD frame
* fdsendrtr: to send a CAN FD RTR frame (payload length = 0).

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:23 +01:00
Gilles DOFFE
f6f6f6973c can: introduce typedef can_frame_t
Whole CAN code in RIOT is using 'struct can_frame' to represent a CAN
frame.
However incoming CAN FD support will bring 'struct canfd_frame' to
represent CAN FD frames.
Even if the 'struct canfd_frame' has additional flags and a bigger
payload, it is aligned on 'struct can_frame' and thus they can be
referenced by the same pointers in the code.

As it is impossible to predict which one will be used in RIOT, just
define a new type 'can_frame_t' which will map to the right struct
according to the MCU CAN supported format.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
Gilles DOFFE
ae51a22fbb can: use frame len instead of can_dlc
RIOT implementation of CAN bus relies on SocketCAN model.
Since commit c398e56 (can: add optional DLC element to Classical CAN
frame structure), '__u8 can_dlc' attribute of struct can_frame is
considered as deprecated in SocketCAN and kept for legacy support.
Attribute '__u8 len' should be used instead.

	union {
		/* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
		 * was previously named can_dlc so we need to carry that
		 * name for legacy support
		 */
		__u8 len;
		__u8 can_dlc; /* deprecated */
	};

Moreover, CAN FD frame structure does not support legacy attribute
'can_dlc', making 'len' mandatory for incoming CAN FD support in RIOT.

	struct canfd_frame {
		canid_t can_id;  /* 32 bit CAN_ID + EFF/RTR/ERR flags */
		__u8    len;     /* frame payload length in byte */
		__u8    flags;   /* additional flags for CAN FD */
		__u8    __res0;  /* reserved / padding */
		__u8    __res1;  /* reserved / padding */
		__u8    data[CANFD_MAX_DLEN]
__attribute__((aligned(8)));
	};

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
mguetschow
f097c89638
Merge pull request #21138 from mguetschow/psa-cc310-dma-check
pkg/driver_cryptocell_310: check for input data to be in RAM
2025-01-29 10:31:22 +00:00
Mikolai Gütschow
36aafd4d03
pkg/driver_cryptocell_310: require all data to be in RAM
as documented on https://docs.nordicsemi.com/bundle/ps_nrf52840/page/cryptocell.html\#ariaid-title14
2025-01-29 11:21:34 +01:00
Mikolai Gütschow
ee23dedf77
tests/sys/psa_crypto_hashes: place input data in RAM, test larger input 2025-01-28 21:07:46 +01:00
Mikolai Gütschow
41766e168d
tests/sys/psa_crypto_{ecdsa,mac}: place input data in RAM 2025-01-28 21:07:46 +01:00
mguetschow
4321173610
Merge pull request #20982 from Lukas-Luger/pr/nrf802154-beacon
cpu/nrf52/radio/nrf802154: fix beacon acceptance
2025-01-28 18:37:28 +00:00
lulu254b
bef67c8a51 tests/drivers/nrf802154: test if Beacons can be received 2025-01-28 19:28:34 +01:00
mguetschow
e1cd685f16
Merge pull request #21167 from maribu/tests/unittests/nanocoap/invalid_option
tests/unittests: test parsing of out-of-bounds CoAP opt
2025-01-28 09:08:25 +00:00
Marian Buschsieweke
e64e5cd369
tests/unittests: test parsing of out-of-bounds CoAP opt
This adds a unit test to nanocoap that checks that nanocoap's
`coap_parse()` indeed returns `-EBADMSG` when a CoAP Option exceeds the
packet's boundaries. This is relied upon in the option parsing code
at various places by omitting the bounds checking, so we should better
make sure that bounds checking is done correctly here and those
functions can indeed rely upon bounds checking being done correctly
before.
2025-01-27 18:12:55 +01:00
Kevin "Tristate Tom" Weiss
19cde44b64
Merge pull request #20966 from crasbe/pr/remove_nrf6310
boards/nrf6310: Remove nRF6310 board from RIOT
2025-01-27 10:22:16 +00:00
Marian Buschsieweke
8a51f2dd20
Merge pull request #20624 from maribu/periph/uart/acquire-release
drivers/periph_uart: document acquire/release semantic
2025-01-24 18:28:16 +00:00
Marian Buschsieweke
ebec3258c3
tests/periph/uart: update to API change
Release the UART before acquiring it again to not dead-lock the code
if acquire/release semantics is implemented by the UART peripheral.
2025-01-24 16:50:18 +01:00
Karl Fessel
254d1336d3 tests/test-rtc: test retrieval of unix-time 2025-01-24 16:35:17 +01:00
crasbe
80e94a5906 tests/*: remove nRF6310 board 2025-01-22 16:01:42 +01:00
Kevin "Tristate Tom" Weiss
9fc5a92587
Merge pull request #21146 from MrKevinWeiss/pr/remotewaspmote
boards/waspmote-pro: Remove after the deprecation period
2025-01-20 21:38:54 +00:00
MrKevinWeiss
b5dadde19b
boards/waspmote-pro: Remove after the deprecation period 2025-01-20 20:55:21 +01:00
Marian Buschsieweke
e68d69f85e
tests/drivers/candev: prefer periph_can when available
This changes the app config to prefer periph_can whenever that feature
is provided, and fall back to mcp2515 as default if not.
2025-01-20 15:55:53 +01:00
mguetschow
9a5ef12e94
Merge pull request #21134 from mguetschow/relic-bump-version
pkg/relic: bump version to 0.7.0
2025-01-14 13:27:16 +00:00
Mikolai Gütschow
88b88b78d3
pkg/relic: bump version to 0.7.0 2025-01-14 09:44:58 +01:00
chrysn
5d7bff869b treewide: Update riot-sys
This pulls in the changes of [144].

[144]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/144
2025-01-13 18:49:18 +01:00
chrysn
ee5e794341 treewide: Update Rust dependencies 2025-01-13 13:33:33 +01:00
chrysn
f1c34a275b treewide: Update riot-wrappers and riot-sys 2025-01-13 13:19:13 +01:00
Marian Buschsieweke
71fa44c814
tests/sys/ztimer_mbox_get_timeout: Fix flakyness
On `native` when build with LLVM, time seems to not monotonically
increase, causing a test to be flaky.

This disables the part that is flaky on native on native.
2025-01-10 22:12:20 +01:00
Marian Buschsieweke
ade999ab01
Merge pull request #21113 from maribu/sys/ztimer/ztimer_mbox_get_timeout
sys/ztimer: implement ztimer_mbox_get_timeout() and use it to fix race in gnrc_sock_recv()
2025-01-10 15:37:46 +00:00
Marian Buschsieweke
8230a274e5
tests: add test for ztimer_mbox_get_timeout() 2025-01-10 16:19:00 +01:00
benpicco
758a92f6f0
Merge pull request #21085 from crasbe/pr/sys/stdio_nimble
sys/stdio_nimble: add version note to README
2025-01-08 08:52:52 +00:00
Marian Buschsieweke
8903c82320
tests/sys/shell: improve test automation
This changes the matching to not eagerly match a shell commands
description across a line break.
2024-12-31 11:30:27 +01:00
crasbe
9c44b7f842 tests/sys/shell_ble: update reference to instructions 2024-12-21 20:59:04 +01:00
benpicco
243ca3114b
Merge pull request #20843 from benpicco/string_writer
sys/string_utils: add string_writer helper
2024-12-20 16:36:09 +00:00