Marian Buschsieweke
2e9ce4d6b4
Merge pull request #20633 from dylad/pr/cpu/cortexm33/add_splim_support
...
cpu/cortexm: add stack limit support for Cortex-M33
2024-05-06 17:05:20 +00:00
Fabian Hüßler
629c0c2f1a
tests/periph/flashpage: make mtd_raw write bytes instead of ASCII
2024-05-06 17:48:00 +02:00
Dylan Laduranty
9a2387d721
tests/cpu: add basic test for cortexm_stack_limit module
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-05-06 17:14:49 +02:00
benpicco
3791db3941
Merge pull request #18427 from maribu/lwip/confirm_send
...
pkg/lwip: make use of confirm send
2024-05-06 11:05:10 +00:00
Stefan Schmidt
9d62ad4c5c
driver/w5500: driver for the W5500 ethernet chip
...
- driver can be used with interrupt or in polling mode (default)
2024-05-02 22:07:17 +02:00
Marian Buschsieweke
cefbc394ca
pkg/lwip: automatically pull in lwip_netdev
...
Pull in lwip_netdev for netdev integration automatically if there is
any netdev to integrate, otherwise don't pull in the module.
As a result, applications no longer need to select that module by hand.
2024-04-30 08:41:07 +02:00
Mikolai Gütschow
db12864596
tests/sys/psa_crypto: increase timeout
...
to account for slow software implementation
2024-04-23 12:46:09 +02:00
Mikolai Gütschow
07f841d9a4
tests/sys/psa_crypto: test interleaved hash operations
2024-04-22 12:28:19 +02:00
Karl Fessel
f130ebfccc
Merge pull request #20140 from krzysztof-cabaj/tests-drivers-at
...
tests/drivers/at: add check if device is initialized before sending command
2024-04-19 09:25:00 +00:00
Marian Buschsieweke
daa6b9da84
Merge pull request #20587 from Teufelchen1/fix/mtd
...
drivers/mtd: Add check for interger overflow
2024-04-18 10:59:40 +00:00
Teufelchen1
3bd047a565
drivers/mtd: Add check for interger overflow
2024-04-18 12:23:50 +02:00
Lena Boeckmann
a958332f14
tests/sys/psa_crypto*: Remove symlinks
2024-04-17 14:13:14 +02:00
mguetschow
ad9d50163e
Merge pull request #20334 from mguetschow/psa-import-key
...
sys/psa_crypto: ed25519 private key {ex,im}port
2024-04-17 11:24:04 +00:00
Mikolai Gütschow
5f08f7478b
sys/psa_crypto: ed25519 private key {ex,im}port
2024-04-17 12:42:05 +02:00
Marian Buschsieweke
fc271ea198
Merge pull request #20562 from MrKevinWeiss/pr/saulrgb
...
drivers/ws281x: Add saul support
2024-04-17 08:00:51 +00:00
mguetschow
b302b031c8
Merge pull request #20099 from Einhornhool/feature/psa-crypto-persistent-storage
...
sys/psa_crypto: Implement persistent key storage
2024-04-16 15:37:03 +00:00
Lena Boeckmann
cbadc4f658
sys/psa_crypto: implement persistent key storage
2024-04-16 11:04:51 +02:00
Teufelchen
5bc8ca5318
Merge pull request #18093 from Ollrogge/remove_flashpage_free_funcs
...
periph/flashpage: remove deprecated flashpage_*_free functions
2024-04-16 08:47:11 +00:00
Marian Buschsieweke
48838f4b83
Merge pull request #20513 from maribu/sys/vfs/atomic_utils
...
sys/vfs: use atomic_utils rather C11 atomics
2024-04-16 06:04:18 +00:00
krzysztof-cabaj
59d5af7f45
tests/drivers/at: add static variable initializer
2024-04-15 20:59:44 +02:00
krzysztof-cabaj
16180a3503
tests/drivers/at: add check if device is initialized before sending command
2024-04-15 20:58:47 +02:00
chrysn
b8ddac765c
rust: Selectively update riot-wrappers dependency
...
This pulls in [88], and thus fixes building of Rust modules when the
wS281x module is enabled.
[88]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/88
2024-04-15 16:28:05 +02:00
Marian Buschsieweke
189bb29f76
tests/periph/timer: also test for idx out of range
...
Also test that `timer_query_freqs()` for an index out of range
does return 0, as stated by the doc.
2024-04-14 20:22:38 +02:00
MrKevinWeiss
06c4cbbe9c
*/Makefile.ci: Add gba_cartridge
2024-04-10 17:06:18 +02:00
Mihai Renea
627926869f
tests/drivers/at_unit: fix unit tests on native
2024-04-08 09:40:52 +02:00
dylad
1a69d9c4c1
tests/sys/shell: add boards to BOARD_INSUFFICIENT_MEMORY
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2024-04-06 12:00:16 +02:00
dylad
364519d5ce
tests/sys/shell: increase the stack size of periodic thread
...
Otherwise the test seems to be broken with LLVM toolchain
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2024-04-06 10:14:10 +02:00
chrysn
ac40354f19
tests/drivers/at_unit: Add Makefile.ci
2024-04-05 14:07:12 +02:00
Teufelchen1
0ddbba3bef
unittests: Move at test to driver tests
2024-04-05 13:17:04 +02:00
Ollrogge
10c987eb66
Revert "periph/flashpage: extend API"
...
This reverts commit 72d47013dd
.
2024-04-04 17:57:40 +02:00
Marian Buschsieweke
be0d276caa
Merge pull request #20529 from Teufelchen1/deprecate/phydat_str
...
sys/phydat: Remove deprecated print function
2024-04-04 11:24:04 +00:00
chrysn
628a8b4cd2
rust: Update riot-wrappers
...
This pulls in [87].
[87]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/87
2024-04-03 23:16:31 +02:00
Teufelchen1
96e748d959
sys/phydat: Remove deprecated print function
...
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2024-04-03 15:29:19 +02:00
Karl Fessel
9d2dda27ce
Merge branch 'master' into cpu/samd5x-write-CAN-driver
2024-03-28 09:52:26 +01:00
Marian Buschsieweke
4b3308cdef
Merge pull request #20357 from maribu/cpu/msp430/usci
...
cpu/msp430/f2xx: clean up periph_uart,periph_spi
2024-03-27 19:57:47 +00:00
Marian Buschsieweke
10ee192afc
examples,tests: bump Makefile.ci
s
...
Ran `dist/tools/insufficient_memory/update_insufficient_memory_board.sh`
for both `z1` and `olimex-msp430-h2618`.
2024-03-27 18:54:07 +01: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
Marian Buschsieweke
42b68a5a43
Merge pull request #20504 from MrKevinWeiss/pr/feather-nrf52840-sense/generic
...
driver/lsm6dsxx: Allow generic LSM6DSXX driver
2024-03-27 16:32:47 +00:00
Marian Buschsieweke
c140eedace
tests/rsut_libs: add missing dependency
...
In `main.c:115` the call
`ztimer_sleep(ZTIMER_MSEC, _periodic_ctx.period.ms);` depends on the
module `ztimer_msec`. Apparently, this was previously pulled in
indirectly and the missing dep has gone unnoticed. This adds the
dep explicitly to fix compilation issues that now have surfaced in
the CI.
2024-03-27 17:18:06 +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
MrKevinWeiss
20fcb1d99d
tests/*: Remove TEST_KCONFIG symbols
2024-03-27 10:28:14 +01:00
MrKevinWeiss
9c9cc379a9
*psa_crypto: Adapt tests/examples with removed Kconfig
2024-03-27 10:28:13 +01:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model
2024-03-27 10:28:12 +01:00
benpicco
d13faeb1cc
Merge pull request #19005 from benpicco/tests/shell-preempt
...
tests/shell: add test for preemption
2024-03-26 23:56:59 +00:00
Benjamin Valentin
ac383b33ae
tests/shell: add test for preemption
...
This tests if a blocking stdio read will allow other threads to be scheduled.
2024-03-27 00:11:53 +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
MrKevinWeiss
9f9da87306
tests/drivers/lsm6dsxx: use generic driver with test
2024-03-26 18:13:20 +01:00
Lena Boeckmann
1924b063ec
sys/psa_crypto: use SHA256 CSPRNG as default
2024-03-26 17:05:58 +01:00
Firas Hamdi
491a1cdf2b
tests/drivers/candev: add test commands
2024-03-26 15:17:48 +01: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
MrKevinWeiss
0f2b71c60e
*Makefile.features: Remove TEST_KCONFIG includes
2024-03-26 14:53:39 +01:00
MrKevinWeiss
db965c9491
*app.config.test*: Remove kconfig dep files
2024-03-26 14:53:35 +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
Karl Fessel
e6f03db4e2
Merge pull request #20423 from derMihai/mir/at_urc
...
drivers/at: fix URC handling and add better testing
2024-03-25 14:33:46 +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
d76fc8d2ed
Merge pull request #20500 from jkarinkl/supported_boards_change_wiki_link
...
tests/unittests/README: link to Supported Boards updated (wiki -> site)
2024-03-22 17:22:16 +00:00
Karin Lammers
623f78d0d6
tests/unittests/README: link to wiki updated
...
This commit changes the link about supported boards in the README from the wiki page to the RIOT-OS website.
Since the wiki is not up to date.
See also [this pull request](https://github.com/RIOT-OS/riot-os.org/pull/109/files ) that fixed the same link on the website.
2024-03-22 16:09:45 +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
Mihai Renea
63e057cb50
drivers/at: Fix sync URC handling. at_send_cmd_get_lines() keeps EOL.
2024-03-20 14:32:09 +01: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
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
c5710392b2
Merge pull request #20464 from Enoch247/add-to-cib
...
core/lib/cib: add new functionality
2024-03-19 08:47:05 +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
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
Joshua DeWeese
b6481654ba
core/lib/cib: add several new peek functions
...
This patch adds calls to be able to peek at items other than just the
oldest item in a cib based FIFO. It also adds an "unsafe" peek to match
the existing "unsafe" put and get functions.
2024-03-18 10:14:34 -04:00
Teufelchen
5f0dc5921c
Merge pull request #20281 from keestux/fix/refactor-tests-periph-uart
...
Refactor tests periph uart
2024-03-18 12:42:23 +00:00
Lena Boeckmann
9c24e891d7
tests/sys/psa_crypto_se_mac: Add arduino-leonardo to blacklist
2024-03-13 11:58:52 +01:00
Lena Boeckmann
d733162d5a
tests/sys/psa_crypto_se_ecdsa: add arduino-leonardo to blacklist
2024-03-13 11:50:31 +01:00
Teufelchen1
79a77dbfa0
tests: Add cases to the scn_u32_hex unittest
2024-03-12 18:28:20 +01:00
Joshua DeWeese
45752a3002
core/lib/cib: remove superfluous init
...
This patch removes a superfluous init of the cib. The struct is already
initialized by the test fixture's setup function.
2024-03-12 12:54:46 -04:00
Joshua DeWeese
45f865965f
core/lib/cib: remove magic number from unit test
2024-03-12 12:54:46 -04:00
Teufelchen1
4917b59005
tests: Cover API of scn_u32_hex in the unittest
2024-03-12 11:46:07 +01:00
Fabian Hüßler
bb9ca2ef86
tests/net/gnrc_ipv6_nib: add tests for router and prefix timeout
2024-03-09 11:02:12 +01:00
Benjamin Valentin
b274e8a117
tests/unittests: report results to the environment on native
2024-03-04 14:43:31 +01:00
Benjamin Valentin
da0298992e
tests: automatically exit native when the test has finished
2024-03-04 14:13:47 +01:00
Benjamin Valentin
634b186d1d
tests/mtd_flashpage: add test for AUX slot
2024-02-28 13:17:59 +01:00
Marian Buschsieweke
e4a64f2ada
Merge pull request #20425 from benpicco/tests/pkg/flashdb_fal_cfg
...
tests/pkg/flashdb_fal_cfg: abort test if no MTD device is configured
2024-02-23 14:06:38 +00:00
Benjamin Valentin
82aac9c761
tests/pkg/flashdb_fal_cfg: abort test if no MTD device is configured
2024-02-23 13:17:12 +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
benpicco
0b385c6c0d
Merge pull request #20418 from xnumad/6ln-onlink-pfx
...
gnrc_ipv6_nib: Ignore PIO with on-link flag
2024-02-22 18:41:22 +00:00
xnumad
23d3ccde6b
gnrc_ipv6_nib: Ignore PIO with on-link flag
2024-02-22 17:52:17 +01:00
Mihai Renea
c58b71b899
drivers/at: parse +CME/+CMS responses and save error value
2024-02-22 12:21:25 +01:00
Marian Buschsieweke
34de5286b7
Merge pull request #20401 from maribu/tests/sys/posix_semaphore/disable_native_on_ci
...
examples, tests: disable native and native64 for more flaky tests
2024-02-20 12:21:25 +00:00
Marian Buschsieweke
463eef1c55
tests/sys/posix_semaphore: disable native,native64 on CI
...
The CI tests may fail under load with:
first: waited too long 1001711 usec => FAILED
2024-02-20 12:30:23 +01:00
8cca5bec30
Merge pull request #20382 from maribu/ci/disable_flaky_tests
...
tests: disable flaky tests on `native` in the CI
2024-02-19 14:10:55 +00:00
chrysn
756a384442
makefiles, treewide: Remove MCU variable
2024-02-18 20:46:09 +01:00
Benjamin Valentin
7e48606399
tests/pkg/edhoc_c: bump CoAP thread stack size
...
The CoAP thread stack size needs to be the same as the main
thread stack size to accommodate the EDHOC stack requirements.
This was lost when moving to the common CoAP server code.
2024-02-14 11:20:56 +01:00
Marian Buschsieweke
d61a468a3e
Merge pull request #20378 from benpicco/use-nanocoap_server_auto_init
...
make use of nanocoap_server_auto_init
2024-02-13 18:41:11 +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
Marian Buschsieweke
4d74b40ace
tests/net/gnrc_rpl: Try to disable the test on native
...
The test is already marked as disabled, but executed anyway. Hopefully
this does the trick.
2024-02-13 09:00:18 +01:00
Marian Buschsieweke
a3e05c578b
tests/sys/ztimer_msg: Disable test on native in CI
...
This tests fails sporadically on unrelated PRs, wasting days of CPU
time in the CI. So, let's disable this test for now.
2024-02-13 08:59:22 +01:00
2c9bf3fbc2
unittests: Extend nanocoap_cache with option-only
2024-02-12 21:20:39 +01:00
Marian Buschsieweke
dd0de1ba25
examples,tests: update Makefile.ci
...
With the new RISC-V toolchain, some binaries grew larger, most smaller.
2024-02-12 20:40:31 +01:00
Benjamin Valentin
49f51e4706
tests/pkg/edhoc_c: make use of nanocoap_server_auto_init
2024-02-12 18:23:54 +01:00
Benjamin Valentin
d02d194c85
tests/riotboot_flashwrite: make use of nanocoap_server_auto_init
2024-02-12 18:23:54 +01:00
benpicco
597b2ad907
Merge pull request #20374 from benpicco/coap_resources_numof-remove
...
always use nanocoap_resources instead of manually assembling coap_resources[]
2024-02-12 16:00:34 +00:00
Marian Buschsieweke
1fcf778526
tests/periph/spi_dma: fix Makefile.ci
...
The `Makefile.ci` was intended to be read and generated by command
line utilities and the contents should look exactly like this:
```
BOARD_INSUFFICIENT_MEMORY += \
board_a \
board_b \
... \
#
```
No fancy schmancy, no `include`, no nothing. This fixes the format.
2024-02-12 15:57:43 +01:00
Benjamin Valentin
2dd6a65ea9
tests/riotboot_flashwrite: make use of nanocoap_resources
2024-02-12 15:43:23 +01:00
Benjamin Valentin
67411db26f
tests/pkg: make use of nanocoap_resources
2024-02-12 15:40:21 +01:00
benpicco
270aa7012f
Merge pull request #20221 from fabian18/pr/flashdb_cfg_enhancement
...
pkg/flashdb: enhance FAL config
2024-02-10 22:33:03 +00:00
Fabian Hüßler
bf4bfdfbe9
tests/pkg/flashdb_fal_cfg: add Makefile.ci
2024-02-10 23:20:24 +01:00
Fabian Hüßler
b671dd4d98
tests/pkg/flashdb_mtd: add Makefile.ci
2024-02-10 23:20:24 +01:00
benpicco
6c96952a9f
Merge pull request #20358 from kaspar030/disable_flakey_native_tests
...
ci: disable some more flakey native tests
2024-02-09 16:12:55 +00: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
Marian Buschsieweke
2dbc80fe59
Merge pull request #20352 from Enoch247/add-limit-macro
...
macros/utils: add LIMIT() and ABS() macros
2024-02-09 06:06:48 +00:00
Fabian Hüßler
057695bdde
tests/pkg/flashdb: add test for FAL config initialization
2024-02-08 20:48:14 +01:00
Joshua DeWeese
fa7a577728
tests/unittests: add test for ABS() macro
2024-02-08 10:56:11 -05:00
Joshua DeWeese
b1cb2435d8
tests/unittests: add unit test for LIMIT() macro
2024-02-08 10:56:00 -05:00
Joshua DeWeese
8e3bbca8b5
tests/unittests: add tests for MAX()/MIN() macros
2024-02-08 10:55:37 -05: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
06e359ed38
tests/sys/ztimer_underflow: disable CI test on native(64)
2024-02-07 23:12:16 +01:00
67a14a306c
tests/sys/xtimer_hang: disable CI test on native(64)
2024-02-07 23:12:16 +01:00
b4e9cef7cc
tests/sys/evtimer_underflow: disable CI test on native(64)
2024-02-07 23:12:16 +01:00
5db8682c7c
tests/core/thread_flags: disable CI test on native(64)
2024-02-07 23:12:16 +01:00
c12283edbc
tests/bench/xtimer_load: disable CI test on native(64)
2024-02-07 23:12:16 +01:00
Benjamin Valentin
23c8336485
tests/net/gcoap_fileserver: add atmega1284p to Makefile.ci
2024-02-07 18:44:36 +01:00
benpicco
4d9e8a8dde
Merge pull request #20335 from fzi-haxel/pr/native64-board
...
native64: Separate board for 64-bit native
2024-02-05 22:58:02 +00:00
Frederik Haxel
5ed0bafc92
examples, tests: Changes for the native64 board
...
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00
Marian Buschsieweke
8aab69e93d
tests/periph/gpio_ll: Test gpio_ll_switch_dir
2024-02-05 10:56:16 +01:00
Marian Buschsieweke
8bf61336a2
Merge pull request #20290 from maribu/drivers/periph/gpio_ll/features
...
drivers/periph_gpio_ll: Fix GPIO_DISCONNECT handling and add compile time feature checks
2024-02-05 07:30:54 +00:00
Benjamin Valentin
85cfcafdf6
boards/weact-g030f6: add new board
2024-02-05 00:45:42 +01:00
benpicco
22dbbf4a07
Merge pull request #20319 from chrysn-pull-requests/rust-simplifications
...
makefiles/cargo: Remove CARGO_CHANNEL and other simplifications
2024-02-02 08:07:02 +00:00
Marian Buschsieweke
3b3da09ec6
Merge pull request #20313 from maribu/sys/byteorder/cleanup-implementation
...
sys/byteorder: clean up implementation
2024-02-02 05:38:33 +00:00
chrysn
16153d73cc
rust: Selectively update riot-wrappers and -sys
...
This pulls in embedded-nal 0.7 implementations, and (on both crates)
alterations that decouple riot-wrappers from riot-sys and simplify build
system integration, and do away with the need for passing
RIOT_USEMODULE.
2024-02-01 13:53:42 +01:00
e48cbb2cd8
Merge pull request #20324 from maribu/tests/sys/ztimer_overhead
...
tests/sys/timer_overhead: disable test on native in CI
2024-02-01 12:09:43 +00:00
Kevin "Tristate Tom" Weiss
e6844f8d28
Merge pull request #20325 from miri64/tests/enh/lwip-radio-settings
...
tests/pkg/lwip: include default-radio-settings.inc.mk
2024-02-01 09:51:39 +00:00
benpicco
d00fdcb301
Merge pull request #20030 from benpicco/nanocoap_fileserver
...
gcoap_fileserver: rename to nanocoap_fileserver
2024-02-01 09:08:49 +00:00
Marian Buschsieweke
01aa5d8167
tests/sys/timer_overhead: disable test on native in CI
2024-02-01 09:55:55 +01:00
Martine Lenders
fb9b6b9cdc
tests/pkg/lwip: include default-radio-settings.inc.mk
2024-02-01 09:52:22 +01:00
benpicco
4ea27d4c13
Merge pull request #20300 from jparker324/stm32c0_and_nucleo_c031c6
...
cpu/stm32: add support for STM32C0 and NUCLEO-C031C6
2024-01-31 15:09:25 +00:00
Marian Buschsieweke
e5f69206ad
sys/libc/endian.h: fix magic constants
...
The constants BIG_ENDIAN etc. were not consistently defined. This
bug was not caught by the unit tests, as the preprocessor would
treat undefined macros as being `0` in numeric comparisons, hence
the following test did select the correct implementation:
```C
#if BYTE_ORDER == LITTLE_ENDIAN
/* correct implementation for all currently supported boards */
#endif
```
This adds now an explicit test to the unit tests to ensure that the
magic numbers are consistently the correct values. Hence, this bug
should no longer be able to sneak in.
Co-authored-by: Teufelchen <9516484+Teufelchen1@users.noreply.github.com>
2024-01-31 14:46:24 +01:00
Benjamin Valentin
a67f7782ad
tests: add nucleo-c031c6 to Makefile.ci
2024-01-31 13:11:05 +01:00
chrysn
6724884b93
makefiles/rust: Remove CARGO_CHANNEL special casing
...
Back when specific control of the Rust version used with RIOT was
needed, CARGO_CHANNEL was added to explicitly set the Rust version with
consideration for CI special cases.
Rust's mechansims of selecting a toolchain can be used instead now.
2024-01-31 12:25:09 +01:00
Martine Lenders
34fcffe37b
Merge pull request #20170 from miquel-b/lsm6dsxx
...
drivers/lsm6dsxx: refactoring Lsm6dsl into common driver Lsm6dsxx
2024-01-30 19:07:04 +00:00
Benjamin Valentin
c5ac574236
tests/net/gcoap_fileserver: gcoap_fileserver -> nanocoap_fileserver
2024-01-30 16:59:00 +01:00
Jason Parker
a2f4a13beb
boards/nucleo-c031c6 initial add
2024-01-30 10:11:57 -05:00
Marian Buschsieweke
e085ad02af
Merge pull request #20310 from maribu/libc/endian
...
sys/libc: add endian.h
2024-01-30 11:48:45 +00:00
Marian Buschsieweke
6615f47b90
tests/unittests: Add tests for endian.h
2024-01-30 12:24:12 +01:00
Frederik Haxel
c4a8b94eab
lua: Increased LUA_MEM_SIZE for 64 bit
2024-01-30 09:31:00 +01:00
Frederik Haxel
7a1c099e7b
tests: 64 bit compatibility
...
Fixed compilation errors. Mostly DEBUG/printf formatting and void pointer casting.
Other changes are:
* net/gnrc_sixlowpan_frag_*: Generalized packet size calculation
* cpu/native_backtrace: Reduced required backtrace size to 3 for 64-bit
* periph/flashpage: Simplified test
* unittests/tests-pktbuf: Generalized alignment
* sys/architecture: Extended test for 64-bit
2024-01-30 09:31:00 +01:00
chrysn
55cbb7bdfa
Merge pull request #20303 from chrysn-pull-requests/rust-updates
...
treewide: Rust updates
2024-01-29 19:54:32 +00:00
chrysn
002cd42e26
treewide: cargo update
2024-01-27 09:41:26 +01:00
MrKevinWeiss
780bb5d500
tests/drivers/saul_drivers: Specify lsm6dsl
2024-01-25 09:18:10 +01:00
Miquel-HAW
71169638ca
drivers/lsm6dsxx: Implement common code
2024-01-24 09:57:04 +01:00
Marian Buschsieweke
447493e719
tests/periph/gpio_ll: test for features matching
...
Test that features implemented match the features claimed to be
supported.
2024-01-23 15:03:34 +01:00
Marian Buschsieweke
a1bb536dbd
tests/periph/gpio_ll: structure code a bit
...
When it is difficult to navigate a function, it is overdue to split
it up :D
Also, no need to test for feature `gpio_ll_irq` in `test_irq()` *and*
before calling `test_irq()`.
2024-01-23 15:03:34 +01:00
mguetschow
50cf7b77cd
Merge pull request #20272 from Teufelchen1/chore/fmt_test_2
...
tests: Slightly increase coverage of fmt unittests
2024-01-23 12:06:48 +00:00
Teufelchen1
7c39b48847
tests: Slightly increase coverage of fmt unittests
2024-01-23 10:30:49 +01:00
Marian Buschsieweke
63ec7fc7b5
Merge pull request #19835 from maribu/msp430
...
cpu/msp430: rework MSP430 x1xx periph drivers
2024-01-22 18:41:23 +00:00
Marian Buschsieweke
675dcc381c
cpu/msp430: rework MSP430 x1xx periph drivers
...
- Move common code for USART (shared SPI / UART peripheral) to its
own file and allow sharing the USART peripheral to provide both
UART and SPI in round-robin fashion.
- Configure both UART and SPI bus via a `struct` in the board's
`periph_conf.h`
- this allows allocating the two UARTs as needed by the use case
- since both USARTs signals have a fixed connection to a single
GPIO, most configuration is moved to the CPU
- the board now only needs to decide which bus is provided by
which USART
Note: Sharing an USART used as UART requires cooperation from the app:
- If the UART is used in TX-only mode (no RX callback), the driver
will release the USART while not sending
- If the UART is used to also receive, the application needs to power
the UART down while not expecting something to send. An
`spi_acquire()` will be blocked while the UART is powered up.
2024-01-22 16:59:23 +01:00
Marian Buschsieweke
3159578cbe
Merge pull request #20189 from maribu/cpu/sam0_common/periph_gpio_ll
...
cpu/sam0_common: implement periph_gpio_ll and periph_gpio_ll_irq
2024-01-22 15:39:26 +00:00
Marian Buschsieweke
00cb9668ae
drivers/periph_gpio_ll: Improve documentation
...
The documentation on the state `GPIO_DISCONNECT` was a bit vague. The
API doc said it should disconnect the GPIO from all peripherals, the
test also tested them for being electrically disconnected.
The documentation in both the test and the API is extended to point out
that a GPIO indeed SHOULD be in high impedance state, but that user
MUST NOT expect that this requested is honored by every implementation
and for every GPIO pin.
In the test it is also pointed out that failing the test for a GPIO
in the `GPIO_DISCONNECT` state being electrically disconnected is for
some pins expected, and that the test should be just run again with
different GPIOs. The test intentionally tests for a feature not provided
by every GPIO pin rather than warning on a failure: The effort to just
flash and run the test again with different GPIOs is relatively low, but
it does confirm correct behavior of the API.
2024-01-22 10:28:35 +01:00
Marian Buschsieweke
891c627c48
tests/periph/gpio_ll: make test more robust
...
When using level triggered IRQs, a new IRQ flag may already have been
set while the IRQ callback is executed. Hence, we cannot just toggle
the output, but rather should drive it low/high for a level trigger on
high/low.
Also test `gpio_ll_query_conf()` for the disconnected state as well.
2024-01-21 18:27:35 +01:00
Marian Buschsieweke
922276296e
drivers/periph/gpio_ll: pass gpio_conf_t by value
...
Now that `gpio_conf_t` is on all implemented platforms no larger than
a register, we can more efficiently pass it by value rather than via
pointer.
2024-01-21 09:19:08 +01:00
Marian Buschsieweke
718f277642
tests/periph/gpio_ll: optimize RAM usage on AVR
2024-01-21 08:38:48 +01:00
Marian Buschsieweke
84800fdb5d
tests/periph/gpio_ll: Use better default pin config
...
The default pin config is only a place holder anyway. But if it is
invalid at least on AVR most of the firmware is considered unreachable.
This updates the default GPIO config to something that should look
plausible to the compiler for all MCUs supporting GPIO LL, so that
ROM and RAM size in the CI start making sense.
2024-01-21 08:38:47 +01:00
Marian Buschsieweke
2ee949e676
tests/periph/gpio_ll: fix output on LOW_ROM_BOARDS
...
Printing the newline after the state was printed is not optional.
This also moves the call to `gpio_ll_print_conf()` and `puts("")` to
a static function to safe enough ROM so that this still can be flashed
on `nucleo-l011k4`.
2024-01-21 08:38:47 +01:00
Marian Buschsieweke
2a00ec13e5
drivers/periph/gpio_ll: shrink gpio_conf_t
...
This commit optimizes the `gpio_conf_t` type in the following
regards:
- The "base" `gpio_conf_t` is stripped from members that only some
platforms support, e.g. drive strength, slew rate, and disabling of
the Schmitt Trigger are no longer universally available but
platform-specific extensions
- The `gpio_conf_t` is now crammed into a bit-field that is 8 bit or
16 bit wide. This allows for storing lots of them e.g. in
`driver_foo_params_t` or `uart_conf_t` etc.
- A `union` of the `struct` with bit-field members and a `bits` is used
to allow accessing all bits in a simple C statement and to ensure
alignment for efficient handling of the type
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2024-01-21 08:38:40 +01:00
Kees Bakker
790bd989f7
tests/periph/uart: redo implementation of changing eol
2024-01-20 21:48:19 +01:00
Kees Bakker
e95211eb14
tests/periph/uart: print incoming CR as \r
...
Also the LF is display inside the [...].
Now it is more obvious what characters came in on the RX port of the UART.
Here is an example:
2024-01-20 20:57:41,368 # send 1 ati
2024-01-20 20:57:41,368 # UART_DEV(1) TX: ati
> 2024-01-20 20:57:41,393 # Success: UART_DEV(1) RX: [ati\r\r\n]
2024-01-20 20:57:41,398 # Success: UART_DEV(1) RX: [SARA-N310-00X-00\r\n]
2024-01-20 20:57:41,399 # Success: UART_DEV(1) RX: [\r\n]
2024-01-20 20:57:41,399 # Success: UART_DEV(1) RX: [OK\r\n]
2024-01-20 21:43:46 +01:00
Marian Buschsieweke
504c169346
Merge pull request #20270 from maribu/boards/gd32vf103c-start
...
boards/gd32vf103c-start: new board
2024-01-20 16:11:31 +00:00
Marian Buschsieweke
66abbd22d6
examples,tests: add gd32vr103c-start to Makefile.ci
2024-01-20 17:00:04 +01:00
benpicco
8dbe2ef7e4
Merge pull request #20273 from benpicco/coap_find_uri_query
...
nanocoap: implement coap_find_uri_query()
2024-01-20 11:27:15 +00:00
Benjamin Valentin
f9d5328242
tests: don't explicitly set RIOT_TERMINAL=native
2024-01-19 18:11:09 +01:00
Benjamin Valentin
4c7fc012c5
tests/unittests: nanocoap: add test for coap_find_uri_query()
2024-01-19 10:53:03 +01:00
Miquel-HAW
c79631c6a5
drivers/lsm6dsxx: Replace all lsm6dsl with lsm6dsxx in the files
2024-01-18 14:20:56 +01:00
Miquel-HAW
ce987ccddd
drivers/lsm6dsxx: dir and file renaming
2024-01-18 14:20:56 +01:00
Marian Buschsieweke
f9aab53e16
tests/periph/uart_locate_pins: new test/utility app
...
This application uses `soft_uart` to bit-bang the name of a number of
configured GPIO pins via said pins at 9600 Bd. This way attaching an
USB UART bridge to one pin at a time easily reveals which MCU GPIO
pin a given pin on a board corresponds to. This is useful when no
schematic and no silkscreen labeling is available, or when the
information is misleading or outright incorrect (looking at the
E180-ZG120B-TB).
2024-01-18 10:42:13 +01:00
Frederik Haxel
64c551a714
unittests/tests-fib: Fix array size types
...
Reverts the type changes for the array size variables, as `size_t` is needed
in the function calls `fib_get_next_hop` and `fib_get_destination_set`.
Fixes 475a55136a
2024-01-15 11:26:36 +01:00
Frederik Haxel
a6a6e31699
tests/unittests/tests-uri_parser: Added PRIuSIZE
2024-01-12 17:17:33 +01:00
benpicco
714958ad3c
Merge pull request #20241 from benpicco/busy_wait
...
sys/busy_wait: add busy wait helper
2024-01-11 12:19:31 +00:00
Benjamin Valentin
9cf1c47e86
tests/sys/busy_wait: add test for busy wait
2024-01-11 13:02:56 +01:00
benpicco
bbf5e23cf9
Merge pull request #19786 from gschorcht/cpu/esp32/periph/sdmmc
...
cpu/esp32/periph: add low-level SDMMC peripheral driver for ESP32 and ESP32-S3
2024-01-07 16:51:16 +00:00
Gunar Schorcht
60ab86b273
tests/pkg/fatfs_vfs: add SDMMC support
2024-01-07 17:02:10 +01:00
Kevin "Tristate Tom" Weiss
32af5758ee
Merge pull request #20229 from benpicco/tests/build_system-drop_kconfig
...
tests/build_system: drop Kconfig tests
2024-01-05 08:03:21 +00:00
Gunar Schorcht
00c9bb73d8
tests/pkg/fatfs: add SDMMC support
2024-01-05 07:22:27 +01:00
Marian Buschsieweke
866f2a00c0
Merge pull request #20226 from maribu/boards/generic-cc2538-cc2592-dk
...
boards/generic-cc2538-cc2592-dk: add board support
2024-01-05 00:35:11 +00:00
Marian Buschsieweke
947d05ed77
boards/generic-cc2538-cc2592-dk: add board support
...
The CC2538-CC2592-DK is one of the few readily available and
affordable boards featuring a legacy CC2538 MCU. This should make
maintaining RIOT support for that legacy MCU more affordable :-)
2024-01-05 00:00:48 +01:00
Benjamin Valentin
bca6d2721b
tests/build_system/kconfig_features: drop test
...
We are removing Kconfig dependency modeling, so the test is obsolete.
2024-01-04 15:37:27 +01:00
Marian Buschsieweke
f860d96a25
Merge pull request #19891 from chrysn-pull-requests/ws2181x_timer
...
drivers/ws281x: Add gpio_ll and timer based driver
2024-01-03 09:22:26 +00:00
benpicco
59eb017448
Merge pull request #20198 from Teufelchen1/chore/fmt_test
...
tests: Slightly increase coverage of fmt unittests
2024-01-02 14:02:59 +00:00
Fabian Hüßler
6e1e78d126
pkg/flashdb: have FAL MTD and defaults for partition 0 defined
2023-12-31 01:27:43 +01:00
Benjamin Valentin
d8cc2ac24f
tests: don't manually select native
term
2023-12-23 20:27:47 +01:00
Benjamin Valentin
90dad75751
tests/build_system/test_tools: use native
terminal
2023-12-22 18:01:21 +01:00
Oleg Hahm
c0e71b0592
Merge pull request #20172 from OlegHahm/pr/pyterm_native_pipe
...
pyterm: add native support
2023-12-21 23:08:22 +00:00
Frederik Haxel
475a55136a
unittests/tests-fib: test cleanup
...
- Added helper function to avoid 'format-truncation' warning
- Changed all `size_t` types to `unsigned`
- Changed function names from `_FIB_` to `_fib_`
2023-12-21 12:06:51 +01:00
Frederik Haxel
fa0cf05d0a
tests: Use size_t print format specifier
...
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:37 +01:00
Teufelchen1
4a62b9ff31
tests: Slightly increase coverage of fmt unittests
2023-12-19 18:11:28 +01:00
benpicco
30f89714f2
Merge pull request #20195 from benpicco/coap_get_uri_query-defuse
...
nanocoap: defuse footgun in coap_get_uri_query()
2023-12-19 13:30:14 +00:00
Benjamin Valentin
d6ca03aaa9
tests/unittests: coap_get_uri_query() -> coap_get_uri_query_string()
2023-12-19 14:02:28 +01:00
chrysn
d86405cef4
drivers/ws281x: Add timer and gpio_ll based driver
2023-12-19 11:13:43 +01:00
Oleg Hahm
273486be78
examples: tests: unify native arguments for ZEP
2023-12-18 20:00:44 +01:00