1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

7139 Commits

Author SHA1 Message Date
Mihai Renea
9996909b65 sys/event: add event_sync() 2024-10-18 13:14:04 +02:00
chrysn
bb3520fff0 treewide: Update Rust dependencies 2024-10-17 16:20:26 +02:00
Wunderbaeumchen
b9396c4739 sys/psa_crypto: chacha20 oneshot gluecode 2024-10-17 10:25:59 +02:00
mguetschow
4f5c0ed3f7
Merge pull request #20894 from Enoch247/littlefs-logging
pkg/littlefs: make use of RIOT's log module instead of pkg provided macros
2024-10-17 08:18:37 +00:00
benpicco
9123b5e8c6
Merge pull request #20911 from fabian18/pr/event_periodic_no_delay
sys/event: add API to start periodic event without initial delay
2024-10-15 22:13:00 +00:00
Joshua DeWeese
96e5f141ac pkg/littlefs: make use of RIOT's logging
This patch replaces the package supplied logging macros with RIOT's. It
also removes the requirement that DEVELHELP be defined to enable
logging. Instead, logging can be enabled/dissabled via the log level.
2024-10-15 13:05:50 -04:00
Joshua DeWeese
5c6be0cdd7 pkg/littlefs2: make use of RIOT's logging
This patch replaces the package supplied logging macros with RIOT's. It
also removes the requirement that DEVELHELP be defined to enable
logging. Instead, logging can be enabled/dissabled via the log level.

The patch also replaceses the package's trace macro with RIOT's DEBUG
macro.
2024-10-15 13:05:50 -04:00
Fabian Hüßler
d4cd708849 tests/sys/event_ztimer: add event_periodic_start_now() to test 2024-10-14 21:18:27 +02:00
Martine Lenders
5094f03f5d
Merge pull request #20909 from maribu/tests/net/gcoap_forward_proxy
tests/net: add stub test for gcoap_forward_proxy
2024-10-14 14:50:56 +00:00
Marian Buschsieweke
a671229f09
tests/net: add stub test for gcoap_forward_proxy
This adds enough to do compile testing for gcoap_forward_proxy.
A proper test would still be needed, though.

This still already exposed compilation issues.
2024-10-14 16:29:52 +02:00
Marian Buschsieweke
59738ba32d
tests/pkg/emlearn: drop model.h from builddep
Now that model.h is in the repo, it no longer is a build dependency.
This allows compilation of the test without having emlearn installed,
which is useful e.g. for build testing.
2024-10-14 11:20:41 +02:00
Marian Buschsieweke
8c9105c60c
tests/unittests: fix compilation with newlib and GCC 13.2.1
newlib (nano) is missing 64 bit support in stdio and inttypes.h. This
works around the issue.
2024-10-09 22:32:43 +02:00
mguetschow
a54ba26285
Merge pull request #20893 from benpicco/THREAD_CREATE_STACKTEST-cleanup
treewide: clean up remnants of THREAD_CREATE_STACKTEST
2024-10-08 09:55:52 +00:00
Benjamin Valentin
97128eef48 treewide: clean up remnants of THREAD_CREATE_STACKTEST 2024-10-07 17:31:31 +02:00
chrysn
69a89b80ca treewide/rust: cargo fmt 2024-10-02 22:17:08 +02:00
Marian Buschsieweke
2c89b7acd3
tests/pkg/emlearn: add model.h to repo
The Makefile rule to regenerate model.h has been left in place, but
just adding the header to the test allows to build the application
without heaving emlearn installed, which is convenient for the CI.

Actual users of emlearn will like still want to generate the header.
2024-09-28 18:29:56 +02:00
benpicco
9bdb697edb
Merge pull request #20857 from benpicco/dns_msg-fix_skip
dns_msg: skip RDLENGTH_LENGTH field when skipping record
2024-09-27 15:57:17 +00:00
Benjamin Valentin
0463b2705f
unittests: add test for dns_msg
Co-Authored-By: Martine Lenders <martine.lenders@tu-dresden.de>
2024-09-27 17:40:11 +02:00
mguetschow
5d958957be
Merge pull request #20854 from netd-tud/psa-headers
Various PSA Crypto fixes
2024-09-18 08:10:44 +00:00
Armin Wolf
cf66f712a6 tests/sys/psa_crypto: Add tests for key usage flags
Add some tests to verify that when creating or importing keys,
the usage flags PSA_KEY_USAGE_SIGN_HASH/PSA_KEY_USAGE_VERIFY_HASH
automatically set the usage flags PSA_KEY_USAGE_SIGN_MESSAGE/
PSA_KEY_USAGE_VERIFY_MESSAGE on the key.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-17 21:36:39 +02:00
Teufelchen
e31e814cff
Merge pull request #20852 from fabian18/nanocoap_sock_get_non
sys/net/application_layer/nanocoap: add `nanocoap_sock_get_non()`
2024-09-10 15:06:27 +00:00
Fabian Hüßler
d3417dad65 tests/net/nanocoap_cli: add get_non command 2024-09-10 16:43:45 +02:00
benpicco
7dbb298766
Merge pull request #20372 from xnumad/rtr_ltime-test
tests/gnrc_ipv6_nib: rtr_ltime test
2024-09-06 11:36:39 +00:00
benpicco
73e90c5049
Merge pull request #20371 from xnumad/nib-next-hop-addr
gnrc_ipv6_nib: Force unspecified next hop addresses
2024-09-02 12:13:28 +00:00
xnumad
560d8c8ee5 gnrc_ipv6_nib: test: Force unspecified next hop addresses 2024-08-31 10:40:17 +02:00
Frederik Haxel
6ef197688f pkg/lvgl: Increase default LV_MEM_SIZE for 64 bit and enable tests for native64 2024-08-29 15:03:18 +02:00
48ccf9c482
tests/pkg/emlearn: update generated model 2024-08-29 10:01:42 +02:00
xnumad
e767e4451a tests/gnrc_ipv6_nib: refactor: extract DAD test 2024-08-27 17:03:45 +02:00
xnumad
40c9dc8320 tests/gnrc_ipv6_nib: rtr_ltime test: Test before removing from DRL
Keep testing for options before removing default router
2024-08-27 12:32:12 +02:00
chrysn
b802a19059 rust: Remove ek-lm4f120x board from blacklist 2024-08-23 13:48:44 +02:00
chrysn
ea40036529 rust: Update all locked versions
This pulls in several updates for which there is no urgent need, but
also no good reason *not* to do them (especially as they may contain bug
fixes, even critical ones).
2024-08-22 17:49:39 +02:00
chrysn
2ef929369f rust: Update locked riot-wrappers and riot-example-modules versions 2024-08-22 17:49:25 +02:00
chrysn
c0288f7d40 rust: Update to riot-wrappers 0.9 2024-08-22 17:33:40 +02:00
chrysn
a26366371d sys/ztimer: Remove the deprecated ztimer_now64
This has been scheduled for removal after 2022.10, and its replacement
ztimer64_now has long been available.
2024-08-20 20:52:37 +02:00
Marian Buschsieweke
af61cf40e3
tests/periph/gpio_ll: add delays to test_switch_dir()
In all other tests we added a delay after writing to the output buffer
of GPIO A before expected the input buffer of GPIO B (connected to A)
to reflect the change, but not in test_switch_dir().

This adds the delay here as well to make the test more robust in regard
to GPIO peripherals that react not as fast as the CPU can query them.
2024-08-08 16:22:36 +02:00
Marian Buschsieweke
a6b459eff3
drivers/periph/gpio_ll: change gpio_ll_switch_dir API
It turns out that the feature to switch the GPIO direction quickly
is not only a way to emulate open drain / open source mode for less
sophisticated GPIO peripherals that do not natively support it.
It also enables tri-state output (push-pull high, push-pull low,
high impedance), which is useful e.g. for driven charlieplexed LEDs
quickly.

This changes the API by introducing a `gpio_ll_prepare_switch_dir()`
function that prepares the value used to identify which pins should
be switched to input or to output mode. This is useful for GPIO
peripherals in which the GPIO mode register does not allocate one bit
per pin (so that only the direction is given there), such as the one
for STM32. This allows an STM32 implementation in which preparing the
bitmask needed to modify the direction of pins is not trivial.
2024-08-08 16:22:36 +02:00
Marian Buschsieweke
422042bd00
drivers/periph_gpio_ll_irq: make support for both edges optional
The assumption that every MCU has this feature turned out wrong. Hence,
add a feature to allow testing for support of edge triggered IRQs on
both flanks.
2024-08-02 13:41:36 +02:00
Marian Buschsieweke
84a4399135
tests/periph/gpio_ll: fix randomly failing test
A test intended to ensure that a configuration toggling the direction
of a GPIO two times restores the original configuration not only
compared the configuration at the two points in time, but also the
value of the input buffer. Since a floating input reads back random
values when not externally driven, the test was actually randomly
failing. Apparently I got lucky before consistently and this never
triggered until now.

This now clears the input value from both the configuration reported
before and after toggling the direction twice and should now indeed
succeed consistently.
2024-08-02 09:55:24 +02:00
Marian Buschsieweke
36e8526046
drivers/periph_gpio_ll: change API to access GPIO ports
The API was based on the assumption that GPIO ports are mapped in memory
sanely, so that a `GPIO_PORT(num)` macro would work allow for constant
folding when `num` is known and still be efficient when it is not.

Some MCUs, however, will need a look up tables to efficiently translate
GPIO port numbers to the port's base address. This will prevent the use
of such a `GPIO_PORT(num)` macro in constant initializers.

As a result, we rather provide `GPIO_PORT_0`, `GPIO_PORT_1`, etc. macros
for each GPIO port present (regardless of MCU naming scheme), as well as
`GPIO_PORT_A`, `GPIO_PORT_B`, etc. macros if (and only if) the MCU port
naming scheme uses letters rather than numbers.

These can be defined as macros to the peripheral base address even when
those are randomly mapped into the address space. In addition, a C
function `gpio_port()` replaces the role of the `GPIO_PORT()` and
`gpio_port_num()` the `GPIO_PORT_NUM()` macro. Those functions will
still be implemented as efficient as possible and will allow constant
folding where it was formerly possible. Hence, there is no downside for
MCUs with sane peripheral memory mapping, but it is highly beneficial
for the crazy ones.

There are also two benefits for the non-crazy MCUs:
1. We can now test for valid port numbers with `#ifdef GPIO_PORT_<NUM>`
    - This directly benefits the test in `tests/periph/gpio_ll`, which
      can now provide a valid GPIO port for each and every board
    - Writing to invalid memory mapped I/O addresses was treated as
      triggering undefined behavior by the compiler and used as a
      optimization opportunity
2. We can now detect at compile time if the naming scheme of the MCU
   uses letters or numbers, and produce more user friendly output.
    - This is directly applied in the test app
2024-08-02 09:55:24 +02:00
xnumad
38d5acf87b tests/gnrc_ipv6_nib: rtr_ltime test 2024-07-29 20:29:10 +02:00
benpicco
9781bc0ad3
Merge pull request #20757 from xnumad/offl-lifetimes
gnrc/ipv6: Store all SLAAC prefixes
2024-07-29 14:06:22 +00:00
benpicco
41204c8b81
Merge pull request #20450 from benpicco/THREAD_CREATE_STACKTEST-delete
core/thread: always use THREAD_CREATE_STACKTEST when DEVELHELP is enabled
2024-07-29 11:52:06 +00:00
Benjamin Valentin
312a550f1a treewide: remove THREAD_CREATE_STACKTEST from thread creation 2024-07-29 11:45:58 +02:00
xnumad
e25066768b gnrc/ipv6: Store all SLAAC prefixes
Incl. off-link ones, since lifetimes for the autoconfigured addresses are managed by the prefix entry.
2024-07-28 09:53:55 +02:00
benpicco
dd06b3727c
Merge pull request #20786 from mguetschow/rust-wrappers-bump
rust: bump rust-riot-{sys,wrappers} version
2024-07-15 14:31:42 +00:00
Mikolai Gütschow
b07eddd66a
rust: bump rust-riot-{sys,wrappers} version
both only bump the version number with no functional changes
2024-07-15 14:14:41 +02:00
Wunderbaeumchen
9b502027ab sys/psa_crypto: added sha3 glue code 2024-07-13 04:35:21 +02:00
Mikolai Gütschow
751a430f89
tests/leds: adapt test to use led.h provided macros and functions 2024-07-11 14:49:37 +02:00
Mikolai Gütschow
86b0c5bc9a
tests/sys/progress_bar: remove debug print 2024-06-30 11:35:11 +02:00
Mikolai Gütschow
e79cb1b6a9
test/sys/progress_bar: fix python (exclusive) range 2024-06-26 11:12:36 +02:00
Mikolai Gütschow
e02c953e33
tests/sys/progress_bar: move configuration to app.config
Providing the configuration via Makefile variables if Kconfig is supported by the module
may involve some non-determinism in the environment variable that is finally exposed to the python tests.
This commit moves the configuration from Makefile to app.config.
2024-06-26 11:11:44 +02:00
mguetschow
a3059feeda
Merge pull request #20763 from mguetschow/nightly-debug-progressbar
test/sys/progress_bar: temporary printout to debug flaky test
2024-06-25 20:00:23 +00:00
Mikolai Gütschow
67ae5035c8
test/sys/progress_bar: temporary printout to debug flaky test 2024-06-25 21:57:40 +02:00
Mikolai Gütschow
cf4cc6ce63
tests/sys/psa_crypto_ecdsa: fix stacksize determination 2024-06-24 13:13:39 +02:00
benpicco
5096c2419e
Merge pull request #20750 from mguetschow/tests-pn532
tests/drivers/pn532: fix init error handling and increase verbosity
2024-06-14 10:49:22 +00:00
mguetschow
b879bbd491
Merge pull request #20745 from LP-HAW/fix-ocb-mode
sys/crypto: fix OCB mode
2024-06-14 08:39:00 +00:00
Mikolai Gütschow
81494bac9f
tests/drivers/pn532: fix init error handling and increase verbosity 2024-06-13 14:52:08 +02:00
Leandro Lanzieri
b092f954bb
tests/drivers: add max31855 test application 2024-06-12 15:09:16 +02:00
LP-HAW
b51d8e3478 sys/crypto: fix OCB mode 2024-06-11 18:26:14 +02:00
fabian18
772ccb9954
Merge pull request #20177 from fabian18/pr/test_periph_flashpage_raw
tests/periph/flashpage: make mtd_raw command write bytes instead of ASCII
2024-06-10 08:40:01 +00:00
fabian18
d6d9d5f3da
Merge pull request #20329 from fabian18/nib_rtr_fixes
nib: some fixes when a router or a prefix is deleted
2024-06-10 08:38:49 +00:00
benpicco
c20a9d1276
Merge pull request #20728 from LP-HAW/fix-w5500-link-state
drivers/w5500: fix W5500 link up/down events in interrupt mode
2024-06-05 17:01:31 +00:00
LP-HAW
134d84401d drivers/w5500: remove Kconfig 2024-06-05 16:30:59 +02:00
Benjamin Valentin
5b73294dad tests/core/thread_stack_alignment: also test for stack usage 2024-06-04 16:57:05 +02:00
mguetschow
f2c18b0b58
Merge pull request #20718 from LP-HAW/fix-sha2prng-init
sys/random: fix SHAxPRNG init_by_array
2024-06-03 09:27:00 +00:00
LP-HAW
9cf9638fdc sys/random: fix SHAxPRNG init_by_array 2024-05-31 23:29:09 +02:00
Marian Buschsieweke
835eaee630
*/Cargo.lock: bump rust-riot-wrappers 2024-05-31 18:26:48 +02:00
benpicco
251ea7f75a
Merge pull request #20687 from benpicco/nanocoap_fs
nanocoap_fs: add nanoCoAP as VFS backend (remote CoAP fs)
2024-05-29 15:00:24 +00:00
Benjamin Valentin
4ff877d239 tests/periph/hwrng: LIMIT -> NUM_BYTES 2024-05-29 14:20:49 +02:00
Benjamin Valentin
f42386587d tests/nanocoap_fs: add test for nanoCoAP fs 2024-05-29 11:32:22 +02:00
Teufelchen
10d8e4f399
Merge pull request #20702 from derMihai/mir/at_expose_api
drivers/at: expose some internal API
2024-05-28 15:37:14 +00:00
Mihai Renea
5a7d553b8e drivers/at: expose some internal API 2024-05-28 12:20:54 +02:00
Marian Buschsieweke
61679fb5f9
tests/pkg/openwsn*: drop whitelist
Now that OpenWSN depends on netif_openwsn, there is no need for
manually tracking which boards are supported
2024-05-27 22:57:21 +02:00
2f3c262fdd
Merge pull request #20683 from FlapKap/update-tfmicro
pkg/tflite-micro: Update tflite-micro to latest version. requires update of pkg/flatbuffers as well.
2024-05-27 06:27:55 +00:00
Marian Buschsieweke
4131abd2ae
Merge pull request #20685 from maribu/tests/drop-kconfig-workaround
tests: drop temporary KConfig workaround
2024-05-24 18:46:36 +00:00
Marian Buschsieweke
cbcf568263
tests: drop temporary KConfig workaround
The board white list was needed as temporary workaround during the
KConfig migration. As the migration was aborted, the workaround should
no longer be needed.

Partially fixes https://github.com/RIOT-OS/RIOT/issues/20680
2024-05-24 18:07:28 +02:00
kasper
2622478c90 pkg/tflite-micro: update Makefile.ci 2024-05-24 11:57:46 +02:00
Kasper Hjort Berthelsen
9c1e664e36 pkg/tflite-micro: Update tflite-micro to latest version 2024-05-24 11:57:46 +02:00
Dylan Laduranty
47b74fc021
Merge pull request #20667 from firas-hamdi/feat/samd5x_can_handle_errors
cpu/samd5x: handle CAN errors
2024-05-23 20:12:08 +00:00
benpicco
7291639b44
Merge pull request #20654 from maribu/tests/periph/uart/cleanup
tests/periph/uart: clean up and add power off cmd
2024-05-23 15:05:05 +00:00
mguetschow
c46d75d486
Merge pull request #20676 from LP-HAW/fix-uecc-key-format
pkg/micro-ecc/psa_uecc: convert between SEC 1 and micro-ecc public key formats
2024-05-22 15:41:43 +00:00
Lars
2ed082a807 tests/sys/psa_crypto_ecdsa: add test vector 2024-05-22 14:02:12 +02:00
Marian Buschsieweke
97a6543c10
tree-wide: Introduce netif feature and use it
This gets rid of a long list of boards with network interfaces and
instead let's boards (or MCUs with peripheral network interfaces)
provide the netif feature.

The apps that before used the long list are not depending on the
feature instead (in case of the default example, this is an
optional dependency).

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: mewen.berthelot <mewen.berthelot@orange.com>
2024-05-22 10:39:56 +02:00
mguetschow
3255b95937
Merge pull request #20598 from mguetschow/psa-hashes-sha512-truncated
sys/psa_crypto: SHA-{384,512/{224,256}}
2024-05-17 09:20:03 +00:00
Mikolai Gütschow
6be95ca482
tests/sys/psa_crypto_hashes: sync with content from examples/psa_crypto 2024-05-17 10:52:16 +02:00
Firas Hamdi
31003bf323 tests/drivers/candev: add debug output concerning errors 2024-05-16 15:00:28 +02:00
mguetschow
de64a1c85f
Merge pull request #20606 from mguetschow/test-psa-crypto-hash-interleaved
tests/sys/psa_crypto: test interleaved hash operations
2024-05-16 11:45:33 +00:00
benpicco
3c4b23c801
Merge pull request #20607 from mguetschow/psa-key-bits-cleanup
sys/psa_crypto: correct use of (ECDSA) key_bits
2024-05-16 08:17:47 +00:00
benpicco
22795248eb
Merge pull request #20651 from benpicco/shell_scripting
sys/shell: add support for running a batch of commands from a file
2024-05-15 09:35:04 +00:00
Benjamin Valentin
cc2dca1064 tests/shell_scripting: add test for running commands from file 2024-05-15 11:20:38 +02:00
benpicco
e4e3aeb71d
Merge pull request #20670 from benpicco/pkg/monocypher-bump
pkg/monocypher: bump to 4.0.2
2024-05-14 15:53:21 +00:00
Benjamin Valentin
8dc317ea38 pkg/monocypher: bump to 4.0.2 2024-05-14 17:22:50 +02:00
Mikolai Gütschow
15e48f0cf3
sys/psa_crypto: correct use of (ECDSA) key_bits 2024-05-14 17:02:46 +02:00
mguetschow
12180f5e80
Merge pull request #20545 from Einhornhool/pr/psa-remove-test-symlinks
tests/sys/psa_crypto*: remove test symlinks
2024-05-14 14:51:26 +00:00
Lena Boeckmann
545a4dd5e4 tests/sys/psa_crypto_ecdsa: Make stacksize backend dependent 2024-05-13 18:30:36 +02:00
Karl Fessel
2bdca8d6c9
Merge pull request #16809 from kfessel/p-backtrace-fix
native/backtrace: improve its print capabilitys and test
2024-05-08 19:57:18 +00:00
Karl Fessel
37627ce2b8 native/backtrace: improve print capabilitys and test 2024-05-08 12:53:57 +02:00
Marian Buschsieweke
29c5452861
tests/periph/uart: clean up and add power off cmd
This updates the test app to use the XFA shell interface and ztimer.
In addition, a shell command to power off the UART interface is added
to e.g. confirm that power consumption indeed goes down.
2024-05-07 14:45:49 +02:00
Marian Buschsieweke
59956fd371
Merge pull request #20613 from maribu/cpu/msp430/pm
cpu/msp430: implement power management
2024-05-07 06:13:50 +00:00
Marian Buschsieweke
d5839ca190
examples,tests: Bump Makefile.ci for MSP430 boards 2024-05-07 07:57:41 +02:00