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

44415 Commits

Author SHA1 Message Date
Urs Gompper
e3d784efda .vscode/settings.json: change vertical ruler to comply with coding conventions 2023-10-26 15:27:05 +02:00
bors[bot]
2b9e82851b
Merge #20015
20015: gcoap_dns: Housekeeping with regards to draft status r=miri64 a=miri64



Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
2023-10-25 11:23:25 +00:00
Martine Lenders
63fd5643e4
coap: Set COAP_FORMAT_DNS_MESSAGE to 553
Set since draft-ietf-core-dns-over-coap-03
2023-10-25 11:00:56 +02:00
Martine Lenders
410be58f36
gcoap_dns: Update draft URL
The DoC draft is a working group draft since September 2022
2023-10-25 10:54:31 +02:00
bors[bot]
647a13c392
Merge #19999
19999: nib/_nib-6ln: bail out early if address is no longer assigned r=miri64 a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-10-24 16:01:53 +00:00
Benjamin Valentin
8779b5edde nib/_nib-6ln: don't check twice if address is assigned 2023-10-24 16:47:47 +02:00
Benjamin Valentin
7c6b367035 nib/_nib-6ln: bail out early if address is no longer assigned 2023-10-24 16:44:25 +02:00
bors[bot]
61ae692ae9
Merge #19994
19994: nanocoap: prevent integer underflow in coap_opt_put_uri_pathquery() r=miri64 a=benpicco





Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-10-24 09:20:51 +00:00
bors[bot]
a1e19312a3
Merge #19990
19990: sys/psa_crypto: allow repeated initialization r=benpicco a=mguetschow

### Contribution description

- simple unit test which calls `psa_crypto_init()` twice
- fix to no re-initialize key slots (which left them in a broken state)

### Testing procedure

- `make -C tests/sys/psa_crypto all test` succeeds
- `git checkout HEAD~1 && make -C tests/sys/psa_crypto all test` fails



Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
2023-10-23 16:32:14 +00:00
bors[bot]
d8b8f4e066
Merge #20011
20011: tests/unittests: add a unit test for ztimer r=benpicco a=maribu

### Contribution description

This adds test coverage for removing ztimers with focus on ensuring that offsets are correctly updated on subsequent timers (e.g. not having timers fire too early).

### Testing procedure

Run the unit tests (will be done by the CI as well). Maybe also introduce a random bug in `ztimer_remove()` and check if this is indeed caught by the unit tests.

### Issues/PRs references

Prompted by https://github.com/RIOT-OS/RIOT/pull/18977#issuecomment-1764258356

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-10-23 16:12:41 +00:00
bors[bot]
238fb60eca
Merge #20005 #20008
20005: tests/pkg/minmea: adding GGA, GSA and RMC sentences to test application r=benpicco a=jan-mo

This will extend the minmea test with additional NMEA sentences like GGA, GSA and RMC.

20008: release-test.yml: Fix strasbourg spelling r=benpicco a=MrKevinWeiss

### Contribution description

Small typo fix... stasbourg -> strasbourg

### Testing procedure

Really not easy since we need an RC to actually test it (since these tests can only be run on RCs)... but the RC1 doesn't contain the `openmote-b` fixes.

### Issues/PRs references


Co-authored-by: Jan Mohr <jan.mohr@ml-pa.com>
Co-authored-by: MrKevinWeiss <weiss.kevin604@gmail.com>
2023-10-23 14:20:19 +00:00
Marian Buschsieweke
e5725f2194
tests/unittests: add a unit test for ztimer
This adds test coverage for removing ztimers with focus on ensuring that
offsets are correctly updated on subsequent timers (e.g. not having
timers fire too early).
2023-10-23 15:44:52 +02:00
Mikolai Gütschow
ceda440031
add Makefile.ci 2023-10-23 14:18:21 +02:00
Jan Mohr
bdb1bc3018 tests/pkg/minmea: exclude boards with small memory 2023-10-23 12:30:52 +02:00
MrKevinWeiss
51ee3b64dc
release-test.yml: Fix strasbourg spelling
Small typo fix... stasbourg -> strasbourg
2023-10-23 11:54:08 +02:00
Jan Mohr
d569cdf4f0 tests/pkg/minmea: adapting test file 2023-10-23 10:32:31 +02:00
Jan Mohr
1bfe45e785 tests/pkg/minmea: adding GGA, GSA and RMC sentences to test application 2023-10-23 10:32:31 +02:00
bors[bot]
ad9e4e7077
Merge #20007
20007: release-test.yml: Add stasbourg creds r=miri64 a=MrKevinWeiss


### Contribution description

This adds creds for stasbourg needed for the `openmote-b` tests in the release specs.

### Testing procedure

Hmmm... I don't know how easy it is.  I will try to link results of the workflow from my personal fork maybe?

### Issues/PRs references

Needed for https://github.com/RIOT-OS/Release-Specs/pull/289


Co-authored-by: MrKevinWeiss <weiss.kevin604@gmail.com>
2023-10-23 08:29:13 +00:00
MrKevinWeiss
ad0edecc35
release-test.yml: Add stasbourg creds 2023-10-23 10:15:17 +02:00
bors[bot]
eee4ce1050
Merge #19958
19958: tests/unittests: blacklist LLVM on native r=maribu a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-10-23 07:24:36 +00:00
Benjamin Valentin
0fa04a3d57 nanocoap: prevent integer underflow in coap_opt_put_uri_pathquery()
If uri contains no path but only a query "?foo=bar" `len` would underflow.
Fix this by detecting if there is no path.

Reported by @Yu3H0
2023-10-20 12:59:42 +02:00
bors[bot]
03d3874e51
Merge #19465 #19981 #19995
19465: drivers/mtd: use XFA for pointers to defined MTDs r=benpicco a=gschorcht

### Contribution description

This PR provides the support to hold pointers to defined MTDs within a XFA. The XFA allows
- to access MTDs of different types (`mtd_flashpage`, `mtd_sdcard`, `mtd_emulated`, ...) by an index
- to determine the number of MTDs defined in the system.

### Testing procedure

To be defined once PR #19443 is merged because emulated MTDs will allow to test this PR on arbitrary boards.

### Porting Guide

For external boards:
 - remove the `MTD_NUMOF` definition from `board.h`
 - add `MTD_XFA_ADD(<mtd_dev>, <idx>);` to the definition of `<mtd_dev>`.
 - `MTD_0`, `MTD_1`, … defines are no longer needed.

### Issues/PRs references

 Related to PR #19443

19981: Fletcher32: Add incremental API r=benpicco a=bergzand

### Contribution description

This PR extends the current fletcher32 checksum with an incremental API mode. This way the bytes to be checksummed can be supplied via multiple successive calls and do not have to be provided in a single consecutive buffer.

I've also rephrased the warning with the original function a bit as that function uses an `unaligned_get_u16` to access the data. The data thus does not require alignment, but the length does need to be supplied as number of 16 bit words.

### Testing procedure

The test has been extended


### Issues/PRs references

None

19995: sys/psa_crypto: Fix macro for public key max size and SE example r=benpicco a=Einhornhool

### Contribution description
#### 1. Wrong public key size when using secure elements, introduced by  #19954
Fixed conditions for key size macros in `crypto_sizes.h`.

#### 2. EdDSA and ECDSA examples fail when using a secure element because of unsopported changes introduced by #19954
Updated `example/psa_crypto` to use only supported functions for secure elements.

### Testing procedure
Build `example/psa_crypto` for secure elements and run application

Output on master:
```
2023-10-19 14:33:24,372 # main(): This is RIOT! (Version: 2019.07-devel-22378-gb6772)
2023-10-19 14:33:24,372 # HMAC SHA256 took 56393 us
2023-10-19 14:33:24,372 # Cipher AES 128 took 68826 us
2023-10-19 14:33:24,372 # *** RIOT kernel panic:
2023-10-19 14:33:24,373 # HARD FAULT HANDLER
2023-10-19 14:33:24,373 # 
2023-10-19 14:33:24,373 # *** rebooting...

```
Output with fixes:
```
2023-10-19 13:35:24,715 # main(): This is RIOT! (Version: 2019.07-devel-22384-g8ef66-dev/psa-crypto-fixes)
2023-10-19 13:35:24,715 # HMAC SHA256 took 56374 us
2023-10-19 13:35:24,715 # Cipher AES 128 took 68805 us
2023-10-19 13:35:24,715 # ECDSA took 281164 us
2023-10-19 13:35:24,715 # All Done
```


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
2023-10-19 19:01:12 +00:00
Lena Boeckmann
b2e1c69b79 examples/psa_crypto: Update example to work with SEs 2023-10-19 15:31:45 +02:00
Lena Boeckmann
130420258c sys/psa_crypto: Fix conditions for public key max export size 2023-10-19 14:12:14 +02:00
Mikolai Gütschow
25aa2167f6
sys/psa_crypto: allow repeated calls to psa_crypto_init()
as defined per https://armmbed.github.io/mbed-crypto/html/api/library/library.html?highlight=psa_crypto_init#c.psa_crypto_init
2023-10-19 11:21:08 +02:00
Mikolai Gütschow
6ad2f052c5
sys/psa_crypto: remove unused variable 2023-10-19 11:21:03 +02:00
Mikolai Gütschow
7479728200
sys/psa_crypto: add test for double initialization 2023-10-19 11:20:27 +02:00
bors[bot]
14b608cb23
Merge #19985
19985: backport_pr.py: increase entries per page for branches GET r=MrKevinWeiss a=miri64



Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
2023-10-18 16:59:33 +00:00
bors[bot]
cb73e0cfc6
Merge #19983
19983: pkg/nanocbor: Update for fixed nanocbor_skip_simple() r=miri64 a=bergzand


### Contribution description

`@miri64` found a bug in NanoCBOR which is fixed with the latest commit.

Important changes:
- Fixed a bug in nanocbor_skip_simple with (b|t)str types

### Testing procedure

The pkg test should still pass.


### Issues/PRs references

None


Co-authored-by: Koen Zandberg <koen@bergzand.net>
2023-10-18 12:40:52 +00:00
Martine Lenders
25917c4b36
backport_pr.py: increase entries per page for branches GET 2023-10-18 14:12:45 +02:00
ca81c7512c
pkg/nanocbor: Update for fixed nanocbor_skip_simple()
Important changes:
- Fixed a bug in nanocbor_skip_simple with (b|t)str types
2023-10-18 13:40:03 +02:00
a00702ee65
Fletcher32: Rephrase note on 16 bit word operations 2023-10-18 13:22:44 +02:00
31df2ba0aa
Fletcher32: Add incremental API 2023-10-18 13:22:44 +02:00
bors[bot]
b6772c85fd
Merge #19968
19968: gcoap: fix underflow when correcting ETag from cache r=miri64 a=miri64



Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
2023-10-17 14:20:41 +00:00
bors[bot]
d2434e5b1b
Merge #19979
19979: dist/testbed-support: Add openmote board r=aabadie a=MrKevinWeiss

### Contribution description

As part of fixing the automated release specs test we will need support for another `cc2538` based board.  I was able to get the tests passing with adaption here and to the release specs.

### Testing procedure

### Issues/PRs references


Co-authored-by: MrKevinWeiss <weiss.kevin604@gmail.com>
2023-10-17 13:27:20 +00:00
MrKevinWeiss
3a0ada484b
dist/testbed-support: Add openmote board 2023-10-17 13:28:05 +02:00
bors[bot]
910e0e28ed
Merge #19963 #19971 #19974 #19975 #19976
19963: sys/event/timeout: add event_timeout_is_pending() r=benpicco a=benpicco



19971: sys/shell/gnrc_netif: Fix a few blockers for sharing ifconfig shell r=benpicco a=yarrick



19974: gnrc_ipv6_ext_frag: _completed: Add comment why list head is not checked for NULL pointer dereference r=benpicco a=miri64

 


19975: pkg/nanocbor: Bump to latest commit r=benpicco a=bergzand

### Contribution description

Not much to see here

Important changes:
- Add stream-like interface for encoder
- Separate functions for number of items left in arrays and maps

### Testing procedure

The usual test should still work

### Issues/PRs references

None

19976: core: Express -1 as ~0 in thread_status_t cast r=benpicco a=SimonIT



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Erik Ekman <eekman@google.com>
Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: SimonIT <simonit.orig@gmail.com>
2023-10-16 15:31:25 +00:00
bors[bot]
554efb7040
Merge #19943 #19978
19943: cpu/stm32: FMC used for low-level LCD parallel interface r=maribu a=gschorcht

### Contribution description

This PR provides the implementation of the LCD low-level MCU 8080 parallel interface using the FMC peripheral.

### Testing procedure

```
BOARD=stm32f723e-disco make -C tests/drivers/st77xx flash
```
and
```
BOARD=stm32l496g-disco make -C tests/drivers/st77xx flash
```
should work on top of PR #19941. Drawing operations should be much faster.

### Issues/PRs references

Depends on PR #19941


19978: treewide: fix typos to make codespell happy r=maribu a=maribu

### Contribution description

- fixes typos in comments and docs (no generated firmware changes expected)
- fixes a typo in a string in a GUI of a utility program
- add some false positives to the ignore list

### Testing procedure

- No generated binaries (except for the GUI version of the utility program to flash the MSB-A2) should change
- The diff should not look too scary

### Issues/PRs references

None

Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-10-16 11:12:04 +00:00
Marian Buschsieweke
50490ed71b
dist/tools/lpc2k_pgm: fix typo in GUI / readme 2023-10-16 12:18:23 +02:00
Marian Buschsieweke
50d5c69e3e
dist/tools/codespell: add more false positives 2023-10-16 12:18:08 +02:00
Marian Buschsieweke
edc43201db
tree-wide: fix typos in doc and comments
This should not change any generated binary
2023-10-16 12:17:48 +02:00
Marian Buschsieweke
4452f0729b
boards/lsn50: change image
Either the wiki is down, or the image was removed from upstream. This
replaces it with the same image hosted on the zephyr doc. As a site
effect, code spell likes the new URL much more.
2023-10-16 12:01:15 +02:00
SimonIT
d778e2eb5f
core: Express -1 as ~0 in thread_status_t cast 2023-10-15 23:54:16 +02:00
Gunar Schorcht
c548efd268 tests/drivers/st77xx: blacklist nucleo-l031k6 2023-10-13 16:39:14 +02:00
a250dfeef0
pkg/nanocbor: Bump to latest commit
Important changes:
- Add stream-like interface for encoder
- Separate functions for number of items left in arrays and maps
2023-10-13 15:25:23 +02:00
Gunar Schorcht
391f303d41 tests/drivers/st77xx: add benchmarking 2023-10-12 18:19:04 +02:00
Gunar Schorcht
eb9515132c boards/stm32l496g-disco: enable FMC support for LCD 2023-10-12 18:19:03 +02:00
Gunar Schorcht
71a97c2ee9 boards/stm32f723e-disco: enable FMC support for LCD 2023-10-12 18:19:03 +02:00
Gunar Schorcht
94fdead641 cpu/stm32: add FMC support for LCD with parallel interface 2023-10-12 18:19:03 +02:00
bors[bot]
3a4ec8d21e
Merge #19972
19972: RFC: Support enabling/disabling lwIP netifs from gnrc_netif shell r=miri64 a=yarrick



Co-authored-by: Erik Ekman <eekman@google.com>
2023-10-12 14:27:46 +00:00