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

1705 Commits

Author SHA1 Message Date
6f00380cc3 examples/suit_update: fix "suit_coap" -> "suit_worker" in test 2023-05-22 12:56:48 +02:00
a2ef123889 examples/suit_update: add delay before getting address of device
Without this delay, the logic skips a tentative ("TNT") address, and
then times out later trying to talk to `fe80::2`.
2023-05-22 12:39:10 +02:00
Marian Buschsieweke
bf168e4b54
pkg/ndn-riot: drop unmaintained pkg
Upstream [1] has seen no activity since 2018, so it safe to assume this
is dead. It is reasonable to assume that any users - if there ever were
any - have moved on.

Fixes https://github.com/RIOT-OS/RIOT/issues/15638

[1]: https://github.com/named-data-iot/ndn-riot
2023-05-22 11:54:06 +02:00
Marian Buschsieweke
f6c7234e39
examples/wasm/wasm_sample: revert prebuild WASM
Running `make` in the wasm example modifies the `hello_prebuild.wasm`
example, making it easy to sneak in unwanted changes. This reverts such
an instance and modifies the Makefile to only recreate/update
`hello_prebuild.wasm` with:

    make hello_prebuild.wasm
2023-05-17 12:31:13 +02:00
Marian Buschsieweke
e7d1c4abc0
boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
984dba7564
treewide: fix path to external_board_dirs test in doc 2023-05-13 18:31:05 +02:00
07d2e1c228
treewide: replace remaining occurrences of tests/pkg_* 2023-05-06 07:55:03 +02:00
b7c1daab9b
examples/lorawan: extend list of supported radios 2023-04-30 21:56:52 +02:00
bors[bot]
429de92251
Merge #19346 #19512 #19513 #19514
19346: pkg/tinydtls: allow build for AVR r=benpicco a=benpicco



19512: SUBSYSTEMS.md: add jia200x to subsystems r=benpicco a=jia200x



19513: boards/nrf52840dongle/doc: Update nrfutil pointers r=benpicco a=chrysn

### Contribution description

Nordic changed its nrfutil; this change adjust to it.

I'm not fully happy with recommending that tool at all due to its bad quality (see rambling in https://github.com/RIOT-OS/RIOT/issues/19511), but short of soldering on a debug header or touch-probing it with wires it's the only way in to the device. I may later add follow-up recommendations to switch to riotboot, but this now at least fixes the immediate issue.

### Testing procedure

* Look at the updated documentation.

### Issues/PRs references

Closes: https://github.com/RIOT-OS/RIOT/issues/19511

19514: dist/testbed-support: remove obsolete boards from iotlab archi r=benpicco a=aabadie



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Jose Alamos <jose@alamos.cc>
Co-authored-by: chrysn <chrysn@fsfe.org>
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-04-26 15:40:08 +00:00
Benjamin Valentin
81dfcc253d examples: update Makefile.ci where tinyDTLS is used 2023-04-26 10:31:09 +02:00
bors[bot]
46af92d3a0
Merge #18620 #19296 #19504 #19506
18620: core: add core_mutex_debug to aid debugging deadlocks r=maribu a=maribu

### Contribution description

Adding `USEMODULE += core_mutex_debug` to your `Makefile` results in
on log messages such as

    [mutex] waiting for thread 1 (pc = 0x800024d)

being added whenever `mutex_lock()` blocks. This makes tracing down
deadlocks easier.

### Testing procedure

Run e.g.

```sh
USEMODULE=core_mutex_debug BOARD=nucleo-f767zi make -C tests/mutex_cancel flash test
```

which should provide output such as

```
Welcome to pyterm!
Type '/exit' to exit.
READY
s
[mutex] waiting for thread 1 (pc = 0x8000f35)
START
main(): This is RIOT! (Version: 2022.10-devel-841-g5cc02-core/mutex/debug)
Test Application for mutex_cancel / mutex_lock_cancelable
=========================================================

Test without cancellation: OK
Test early cancellation: OK
Verify no side effects on subsequent calls: [mutex] waiting for thread 1 (pc = 0x800024d)
OK
Test late cancellation: [mutex] waiting for thread 1 (pc = 0x0)
OK
TEST PASSED
```

```sh
$ arm-none-eabi-addr2line -a 0x800024d -e tests/mutex_cancel/bin/nucleo-f767zi/tests_mutex_cancel.elf 
0x0800024d
/home/maribu/Repos/software/RIOT/tests/mutex_cancel/main.c:51
```

### Issues/PRs references

Depends on and includes https://github.com/RIOT-OS/RIOT/pull/18619

19296: nanocoap: allow to define CoAP resources as XFA r=maribu a=benpicco



19504: cpu/cc26xx_cc13xx: Fix bogus array-bound warning r=maribu a=maribu

### Contribution description

GCC 12 create a bogus array out of bounds warning as it assumes that because there is special handling for `uart == 0` and `uart == 1`, `uart` can indeed be `1`. There is an `assert(uart < UART_NUMOF)` above that would blow up prior to any out of bounds access.

In any case, optimizing out the special handling of `uart == 1` for when `UART_NUMOF == 1` likely improves the generated code and fixes the warning.

    /home/maribu/Repos/software/RIOT/cc2650/cpu/cc26xx_cc13xx/periph/uart.c:88:8: error: array subscript 1 is above array bounds of 'uart_isr_ctx_t[1]' [-Werror=array-bounds]
       88 |     ctx[uart].rx_cb = rx_cb;
          |     ~~~^~~~~~
    /home/maribu/Repos/software/RIOT/cc2650/cpu/cc26xx_cc13xx/periph/uart.c:52:23: note: while referencing 'ctx'
       52 | static uart_isr_ctx_t ctx[UART_NUMOF];
          |                       ^~~
    /home/maribu/Repos/software/RIOT/cc2650/cpu/cc26xx_cc13xx/periph/uart.c:89:8: error: array subscript 1 is above array bounds of 'uart_isr_ctx_t[1]' [-Werror=array-bounds]
       89 |     ctx[uart].arg = arg;
          |     ~~~^~~~~~
    /home/maribu/Repos/software/RIOT/cc2650/cpu/cc26xx_cc13xx/periph/uart.c:52:23: note: while referencing 'ctx'
       52 | static uart_isr_ctx_t ctx[UART_NUMOF];
          |                       ^~~

### Testing procedure

The actual change is a pretty obvious one-liner, so that code review and a green CI should be sufficient. If not, running any UART example app without regression should do.

### Issues/PRs references

None

19506: tools/openocd: Fix handling of OPENOCD_CMD_RESET_HALT r=maribu a=maribu

### Contribution description

The OPENOCD_CMD_RESET_HALT was not longer correctly passed to the script. This fixes the issue.

### Testing procedure

Flashing of e.g. the `cc2650-launchpad` with upstream OpenOCD should work again.

### Issues/PRs references

The change was added to https://github.com/RIOT-OS/RIOT/pull/19050 after testing the PR and before merging. I'm not sure if the fix never worked because of this, or if behavior of `target-export-variables` or GNU Make changed.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-04-25 15:46:11 +00:00
chrysn
6724e851ca Rust: Update riot-wrappers
This fixes a regression by merging https://github.com/RIOT-OS/rust-riot-wrappers/pull/55
(the "G" unit has been deprecated, but that deprecation was done wrong
in https://github.com/RIOT-OS/rust-riot-wrappers/pull/50).
2023-04-25 09:20:58 +02:00
chrysn
d630f00cde Rust examples: Update coap-handler-implementations dependency
This helps remove duplicate code after previous updates.
2023-04-24 11:41:13 +02:00
chrysn
5f91bd8812 Rust: Update non-RIOT dependencies 2023-04-24 11:38:59 +02:00
chrysn
de410314a3 Rust: Update riot-sys and riot-wrappers
This pulls in several fixes from these repositories:

* riot-sys:
    * Add `random` module to `riot-headers` (https://github.com/RIOT-OS/rust-riot-sys/pull/26)
    * README: fix 2 typos (https://github.com/RIOT-OS/rust-riot-sys/pull/31)
    * bindgen: Use 0.64 (https://github.com/RIOT-OS/rust-riot-sys/pull/30)
    * wolfSSL support added (https://github.com/RIOT-OS/rust-riot-sys/pull/28)
    * extern-types: Generate replacement types dynamically (https://github.com/RIOT-OS/rust-riot-sys/pull/27)
    * Extern types: Add netq_t, make them large (https://github.com/RIOT-OS/rust-riot-sys/pull/25)
    * doc: Suppress warnings about things C2Rust does not uphold (https://github.com/RIOT-OS/rust-riot-sys/pull/23)
    * export macro_DAC_LINE (https://github.com/RIOT-OS/rust-riot-sys/pull/22)
    * Add BINDGEN_OUTPUT_FILE export (https://github.com/RIOT-OS/rust-riot-sys/pull/21)
* riot-wrappers:
    * DAC: Add wrapper around RIOTs DAC-interface (https://github.com/RIOT-OS/rust-riot-wrappers/pull/36)
    * saul: Compatibly rename G* variants (https://github.com/RIOT-OS/rust-riot-wrappers/pull/50)
    * tests: Add test for auto-init when auto-init debug is active (https://github.com/RIOT-OS/rust-riot-wrappers/pull/48)
    * gcoap: Provide link encoder (https://github.com/RIOT-OS/rust-riot-wrappers/pull/47)
    * Drop SUIT support in riot-wrappers (https://github.com/RIOT-OS/rust-riot-wrappers/pull/44)
    * Add an auto init module (https://github.com/RIOT-OS/rust-riot-wrappers/pull/45)
    * gcoap: Allow registration without scope for 'static listeners (https://github.com/RIOT-OS/rust-riot-wrappers/pull/43)

Through direct dependency changes (the bindgen update), the number of
transitive dependencies could be reduced.
2023-04-24 11:29:52 +02:00
bors[bot]
0101663e39
Merge #19485
19485: sys/shell: Fix missing dependency r=aabadie a=maribu

### Contribution description

The shell commands depend on the shell module being use. This was already the case in KConfig, but was overlooked in the shell's `Makefile.dep`.

In addition, this uncovered that `tests/memarray` had a bogus dependency on shell commands without every using the shell.

### Testing procedure

Ideally binaries should not differ (except for debug section).

### Issues/PRs references

Split out of https://github.com/RIOT-OS/RIOT/pull/19483

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2023-04-22 06:21:38 +00:00
Marian Buschsieweke
12140ffb0e
examples,tests: Drop redundant dependency
When depending on one or more shell commands, the shell is pulled in
as dependency anyway.
2023-04-19 16:58:10 +02:00
Gunar Schorcht
ea613096f5 examples/suit_update: blacklist GD32V boards 2023-04-18 06:20:14 +02:00
bors[bot]
7f95ee7558
Merge #19373
19373: examples/suit_update: improve default module selection r=bergzand a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-03-29 09:44:59 +00:00
bors[bot]
8dc8bf3567
Merge #19302
19302: pkg/wolfssl: Update wolfSSL to 5.5.4 and add DTLS 1.3 support r=benpicco a=Flole998



Co-authored-by: Florian Lentz <flolen@uni-bremen.de>
Co-authored-by: Flole998 <Flole998@users.noreply.github.com>
2023-03-10 02:22:17 +00:00
Benjamin Valentin
cc1d48aaf1 examples/suit_update: add missing include 2023-03-10 02:23:55 +01:00
Benjamin Valentin
fc8b20e4e9 examples/suit_update: improve default module selection 2023-03-10 02:23:51 +01:00
Benjamin Valentin
88789454dd examples/nanocoap_server: enable fileserver for large boards 2023-03-09 14:09:15 +01:00
Flole998
7909e3c0b0 examples/dtls-wolfssl: Update insufficient flash board list 2023-03-08 20:29:15 +00:00
Flole998
abff36ed4d tests/pkg_wolfssl: Mark hifive1b as having insufficient memory 2023-03-01 01:06:53 +00:00
Benjamin Valentin
13aa272616 examples/nanocoap_server: define CoAP resources as XFA 2023-02-28 20:13:18 +01:00
bors[bot]
6b501f74c6
Merge #19321 #19325 #19327 #19328
19321: examples/gnrc_border_router: add BLE as downlink option r=benpicco a=benpicco



19325: esptools/install.sh: Fix shellcheck issues r=benpicco a=bergzand

### Contribution description

Quote all the things!


### Testing procedure

The script should still work as before


### Issues/PRs references

None

19327: shell/cmds: GNRC: replace puts() with printf() r=benpicco a=benpicco



19328: pkg/u8g2: bump version r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de>
2023-02-27 16:30:53 +00:00
Benjamin Valentin
b1e327d133 examples/gnrc_networking: remove microduino-corerf from Makefile.ci 2023-02-27 17:15:21 +01:00
Marian Buschsieweke
7e58bea1bd
examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
Benjamin Valentin
2d76fec30d examples/gnrc_border_router: add BLE as downlink option 2023-02-27 00:00:16 +01:00
Joshua DeWeese
cdf26c9cd0 examples/telnet_server: add missing newline
The telnet example prints a line to the console, but it is not ended
with a newline. When using pyterm, the last line is then never shown as
it reads the console line by line and is waiting for the end of the
line.

This patch swaps use of `printf` for `puts` for the last line printed.
This means the missing newline character gets added. This is also done
to be consistent with the rest of the file, where puts is used whenever
possible instead of printf.
2023-02-22 09:49:10 -05:00
bors[bot]
cf540a2648
Merge #19294 #19295
19294: sys/shell: don't include suit command by default r=benpicco a=benpicco



19295: gcoap: Finish the gcoap_get_resource_list_tl -> gcoap_get_resource_list renaming r=benpicco a=chrysn

### Contribution description

In #16688, an argument was added to the `gcoap_get_resource_list` function by creating a new function `gcoap_get_resource_list_tl` with a deprecation and roll-over plan.

This plan has not been acted on so far.

This PR shortens the original plan by just adding the argument to `gcoap_get_resource_list` and removing `gcoap_get_resource_list_tl` in a single go. The rationale for this deviation is that while it's a public API, its only two practical consumers are the (built-in) well-known/core implementation, and the (built-in) CoRE Resource Directory (cord) endpoint. Moreover, a further change to this API (switching over to `coap_block_slicer_t`) is expected to happen within this release cycle, which would take something like 4 total releases to get through otherwise, which is unrealistic for an API that there are no known external users of.

A second commit clean up ToDo items (in the changed function's documentation) that referred to a IETF draft that has long been abandoned by the CoRE WG.

### Testing procedure

Plain inspection and CI passing should suffice.

### AOB

There is a second analogous pair left over from #16688, `gcoap_req_send` / `gcoap_req_send_tl`. As that *is* expected to be used widely, I prefer not to mix these two concerns, and get the present one through without unnecessary hold-up.

Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: chrysn <chrysn@fsfe.org>
2023-02-21 23:15:06 +00:00
bors[bot]
37b64912d4
Merge #19256
19256: pkg/tinyusb: add GD32VF103 support r=gschorcht a=gschorcht

### Contribution description

This PR provides the tinyUSB support for GD32VF103 and enables the `tinyusb_device` feature as well as `stdio_tinyusb_cdc_acm` for GD32VF103 boards.

### Testing procedure

```
BOARD=sipeeed-longan-nano make -C tests/shell flash term
```
should work

### Issues/PRs references


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-02-21 16:53:06 +00:00
Benjamin Valentin
f3aa2ac42e examples/suit_update: enable suit command 2023-02-21 17:34:29 +01:00
Gunar Schorcht
a324352f33 examples/gcoap_dtls: blacklist GD32V boards 2023-02-21 15:04:13 +01:00
Gunar Schorcht
ebd377b271 examples/rust-gcoap: blacklist GD32V boards 2023-02-21 15:04:13 +01:00
bors[bot]
523a39acd3
Merge #19288
19288: rust: Update riot-sys and riot-wrappers r=kaspar030 a=chrysn

### Contribution description

rust: Update riot-sys and riot-wrappers

* riot-wrappers:
  * Fix infinite loop when using a Mutex
  * Make ValueInThread Copy/Clone
* riot-sys:
  * Export xxx_DEV (eg. I2C_DEV) C macros as functions
  * Add auto_init_utils.h

### Testing procedure

CI checks should suffice.

### Issues/PRs references

This pulls in fixes from

* https://github.com/RIOT-OS/rust-riot-sys/pull/18
* https://github.com/RIOT-OS/rust-riot-sys/pull/17 / https://github.com/RIOT-OS/rust-riot-wrappers/issues/37
* https://github.com/RIOT-OS/rust-riot-wrappers/pull/42 / https://github.com/RIOT-OS/rust-riot-wrappers/issues/41


Co-authored-by: chrysn <chrysn@fsfe.org>
2023-02-20 08:34:11 +00:00
chrysn
bcea914338 rust: Update riot-sys and riot-wrappers
* riot-wrappers:
  * Fix infinite loop when using a Mutex
  * Make ValueInThread Copy/Clone
* riot-sys:
  * Export xxx_DEV (eg. I2C_DEV) C macros as functions
  * Add auto_init_utils.h
2023-02-20 09:06:33 +01:00
Benjamin Valentin
50802b841d cpu/esp_common: use generic WIFI_SSID/WIFI_PASS defines 2023-02-17 15:32:03 +01:00
Benjamin Valentin
a693ecc148 examples/gnrc_border_router: set number of leases to number of ZEPs 2023-02-01 23:25:22 +01:00
bors[bot]
cf2d66ede8
Merge #19193 #19214
19193: rust: Update dependencies, use riot-wrappers from git r=benpicco a=chrysn

### Contribution description

As riot-wrappers has advanced a bit since it was last released, Rust modules are switched to using it from git again. (This is a regular ping-pong between testing the latest release in RIOT master, and using released support crates when they're current).

This primarily updates riot-wrappers, which has accumulated several compatible changes. Several other crates receive updates as well.

### Testing procedure

* Green CI

### Issues/PRs references

Changes on the riot-wrappers side:

* https://github.com/RIOT-OS/rust-riot-wrappers/pull/17
* https://github.com/RIOT-OS/rust-riot-wrappers/pull/22
* https://github.com/RIOT-OS/rust-riot-wrappers/pull/29
* https://github.com/RIOT-OS/rust-riot-wrappers/pull/30

[edit: added:]

This also serves to help preparing a 0.8.1 release of riot-wrappers, which performs some deprecations so that a breaking 0.9 change can be done more effortlessly later on.

19214: cpu/gd32v: add periph_spi support r=benpicco a=gschorcht

### Contribution description

This PR provides the `periph_spi` support and is one of a bunch of PRs that complete the peripheral drivers for GD32VF103.

The driver is a modified version of the driver for STM32F1 with some changes that were necessary to get it working on GD32V.

### Testing procedure

`tests/periph_spi` as well as a test with any SPI sensor should work. `tests/driver_sdcard_spi` should work on `sipeed-longan-nano`.

### Issues/PRs references

Depeneds on PR #19216 

Co-authored-by: chrysn <chrysn@fsfe.org>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-02-01 11:13:05 +00:00
Benjamin Valentin
ff52d35584 gnrc_ipv6_nib: use static DNS server from auto_init_sock_dns if present 2023-01-27 19:15:13 +01:00
Benjamin Valentin
acf2074369 examples/gnrc_border_router: static: use router from advertisements by default 2023-01-27 18:01:00 +01:00
chrysn
3779abca36 rust: Update riot-wrappers 2023-01-25 02:07:49 +01:00
chrysn
5981079782 rust: Update dependencies, use riot-wrappers from git
This primarily updates riot-wrappers, which has accumulated several
compatible changes.
2023-01-24 20:12:58 +01:00
Gunar Schorcht
2dfe3850c2 examples: add sipeed-longan-nano to Makefile.ci 2023-01-24 00:39:43 +01:00
Marian Buschsieweke
965b555d7e
examples/gcoap_dtls: Increase stack size
Also fix some typos in the readme.
2023-01-22 14:56:30 +01:00
Benjamin Valentin
d415c16a4f examples/paho-mqtt: re-add stm32mp157c-dk2 to Makefile.ci 2023-01-18 14:47:24 +01:00
bors[bot]
d6f44f6206
Merge #18414
18414: gcoap/fileserver: add event callbacks r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-01-16 22:23:46 +00:00
bors[bot]
211db05401
Merge #18477 #19101 #19155
18477: gnrc_static: add static network configuration r=miri64 a=benpicco



19101: CI: update check-labels-action r=miri64 a=kaspar030



19155: Revert "sys/pm_layered: pm_(un)block add attribute optimize(3)" r=maribu a=Teufelchen1

Revert "sys/pm_layered: pm_(un)block add attribute optimize(3) -shortens hotpath"

This reverts commit 5447203921.

### Contribution description

Compiling `examples/gnrc_networking_mac` using `TOOLCHAIN=llvm` yields the following error:
```
RIOT/sys/pm_layered/pm.c:77:16: error: unknown attribute 'optimize' ignored [-Werror,-Wunknown-attributes]
__attribute__((optimize(3)))
```
As indicated, this is because the attribute `optimize` is GCC only and not present in LLVM.
Compare the manpages of [GCC](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html) and [LLVM](https://clang.llvm.org/docs/AttributeReference.html).


### Testing procedure

Since this should only affect performance and not behavior, no special testing is needed. I am not aware of any tests in RIOT which could verify that assumption.

### Issues/PRs references

Introduced in #18846

There is another instance of this attribute being used in[ shell_lock.c](6fb340d654/sys/shell_lock/shell_lock.c (L80)). Since the usage is security related, I omit it from this PR.


Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
2023-01-16 14:03:15 +00:00
Benjamin Valentin
65a8b716e3 examples/gcoap_fileserver: make use of callbacks 2023-01-16 10:25:01 +01:00
Marian Buschsieweke
21ae657e92
examples/gcoap: Fix shell parameter validation
Executing the shell command with an URI-Path that doesn't start with a
slash results in an assertion error while composing the client side
message. This is suboptimal user experience, so add an explicit check
for a valid URI-Path and a dedicated error message.
2023-01-15 22:20:39 +01:00
Marian Buschsieweke
f2aa6d7476
examples: Update Makefile.ci 2023-01-12 08:39:41 +01:00
Marian Buschsieweke
d2a3ff3d83
boards/{bluepill*,blackpill*}: rename and improve doc
- renamed:
    - `bluepill` --> `bluepill-stm32f103c8`
    - `bluepill-128kib` --> `bluepill-stm32f103cb`
    - `blackpill` --> `blackpill-stm32f103c8`
    - `blackpill-128kib` --> `blackpill-stm32f103cb`
- doc:
    - added link to corresponding hardware page on the STM32-base
      project
    - added picture
2023-01-02 16:23:10 +01:00
chrysn
e9f793c5e4 examples/gnrc_border_router: Restore UHCP conditional default
The space inside the expression made the ifneq always non-equal; the
intended behavior is "if we're using any of these interfaces, or
REUSE_TAP is set".
2022-12-20 17:35:08 +01:00
Benjamin Valentin
34e9d66261 examples/gnrc_border_router: add static network config option 2022-12-11 23:34:09 +01:00
bors[bot]
de3241e90f
Merge #18962 #18999 #19034
18962: pkg/lwip: Force loglevel when using log module r=maribu a=yarrick



18999: Paho: Allow building for 8 and 16 bit platforms r=maribu a=OlegHahm

### Contribution description

Providing a patch to Paho upstream which uses fixed size integers (int32_t) instead of plain int whenever it is used to represent a size of an object.

This patch will allow to build the Paho package for platforms where an integer has a width of less than 32 bit.

This patch is also provided as a PR to the upstream version of Paho (https://github.com/eclipse/paho.mqtt.embedded-c/pull/238) but unfortunately the upstream seems to be unmaintained.

### Testing procedure

Build for a 8 or 16 bit platform that has enough memory for the example, e.g., https://api.riot-os.org/group__boards__atxmega-a1u-xpro.html:
BUILD_IN_DOCKER=1 BOARD=atxmega-a1u-xpro make clean all

Without this PR this build will fail, with the patches applied it will succeed.

### Issues/PRs references

This PR makes #18997 obsolete and thus reverts the change.


19034: boards/nucleo-l496zg: doc improvement r=maribu a=krzysztof-cabaj

### Contribution description

This PR adds to nucleo-l496zg documentation MCU table - similar to those, for example for, Nucleo F103RB, F302R8 or F446RE.

### Testing procedure

```
make doc
xdg-open doc/doxygen/html/group__boards__nucleo-l496zg.html
```

### Issues/PRs references

None

Co-authored-by: Erik Ekman <eekman@google.com>
Co-authored-by: Oleg Hahm <oleg@hobbykeller.org>
Co-authored-by: krzysztof-cabaj <kcabaj@gmail.com>
2022-12-11 12:03:28 +00:00
bors[bot]
a28f4383da
Merge #19024
19024: pkg/paho-mqtt: add support for DNS r=aabadie a=benpicco

<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/blob/master/CODING_CONVENTIONS.md.
-->

### Contribution description

This is pretty straightforward, we only need to hook up `dns_query()`.

Since paho supports both IPv4 and IPv6 we use `AF_UNSPEC` in the query.
This can however give us a A record if we only have IPv6 enabled, so translate the request based on what IP address module is enabled in `dns_query()`.
### Testing procedure

connecting by name works

```
> con test.mosquitto.org 1883
mqtt_example: Connecting to MQTT Broker from test.mosquitto.org 1883
mqtt_example: Trying to connect to test.mosquitto.org , port: 1883
user: clientId: password:
mqtt_example: Connection successfully
```

connecting by IP still works

```
> con 2001:41d0:1:925e::1 1883
mqtt_example: Connecting to MQTT Broker from 2001:41d0:1:925e::1 1883
mqtt_example: Trying to connect to 2001:41d0:1:925e::1 , port: 1883
user: clientId: password:
mqtt_example: Connection successfully
```

<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->


### Issues/PRs references

<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->


Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
2022-12-08 15:38:32 +00:00
benpicco
154b1d6397
Merge pull request #18836 from benpicco/gnrc_border_router-native
examples/gnrc_border_router: add option to re-use existing TAP interface
2022-12-07 22:34:01 +01:00
Benjamin Valentin
42b7530ae5 examples/paho-mqtt: remove superflous space 2022-12-07 22:32:19 +01:00
Benjamin Valentin
fa6566ae2e examples/paho-mqtt: add support for DNS 2022-12-07 22:26:51 +01:00
Oleg Hahm
b9178c61c3 examples: paho: updated insufficient memory listinsufficient memory list 2022-12-02 19:18:12 +01:00
benpicco
945af26648
Merge pull request #18964 from gschorcht/bootloaders/riotboot_dfu_fixes
bootloaders/riotboot_dfu: fixes including sys/usb/usbus/dfu
2022-12-02 18:40:01 +01:00
Benjamin Valentin
a27f382f7e examples/timer_periodic_wakeup: switch to ztimer 2022-12-01 18:37:01 +01:00
Oleg Hahm
df0c04ecc8
Merge pull request #18982 from OlegHahm/pr/paho_on_gnrc
paho: use GNRC instead of lwip
2022-12-01 08:46:15 +01:00
Oleg Hahm
ef2b581c10 paho: use GNRC instead of lwip 2022-11-30 20:42:05 +01:00
Gunar Schorcht
23ccbb5786 examples/suit: blacklist blxxxpill boards due to insufficient memory 2022-11-30 19:28:14 +01:00
benpicco
e18bc193fc
Merge pull request #18551 from benpicco/suit_worker_cleanup
suit: start worker thread on demand, make suit_handle_url() public
2022-11-30 11:42:25 +01:00
Marian Buschsieweke
26d5b7ca0b
Merge pull request #18839 from chrysn-pull-requests/rust-use-stable
rust: Use stable Rust
2022-11-24 20:41:51 +01:00
chrysn
05b4749ae7 rust: Run all examples on stable
This is possible starting with Rust 1.65.
2022-11-24 11:07:45 +01:00
Hendrik van Essen
a673d504ac examples/gcoap: replace _parse_endpoint by sock_udp_name2ep 2022-11-14 17:14:10 +01:00
Marian Buschsieweke
c801990c5d
examples/wasm/wasm_sample: fix linking with new wasm-ld
Apparently the order of the flags now became significant. This fixes:

    wasm-ld: error: entry symbol not defined (pass --no-entry to suppress)
2022-11-09 20:12:32 +01:00
Benjamin Valentin
299b5ac5a5 examples/gnrc_border_router: honor $TAP setting 2022-11-08 15:33:16 +01:00
Benjamin Valentin
a61a0262d7 examples/gnrc_border_router: allow to re-use tap interface with ethos 2022-11-08 15:06:33 +01:00
Benjamin Valentin
5260c18ae6 examples/gnrc_border_router: add option to re-use existing TAP interface 2022-11-08 15:06:33 +01:00
Marian Buschsieweke
13eef005ef
Merge pull request #18848 from benpicco/coap_build_reply-return
examples: check return value of coap_build_reply()
2022-11-07 12:20:42 +01:00
Teufelchen1
2adf0e9072 examples: Remove macOS references in README 2022-11-05 11:54:51 +00:00
Benjamin Valentin
4fe202db1e examples: check return value of coap_build_reply()
`coap_build_reply()` may return negative values on error or
0 in the no-response case.

Don't use it to calculate a payload offset without checking first.
2022-11-04 20:00:51 +01:00
Martine Lenders
f210bcc13b
examples/gnrc_networking: adopt Makefile.ci for new RAM size 2022-10-27 17:28:02 +02:00
Jue
77ee1c55bc boards/xg23-pk6068a: initial commit 2022-10-26 11:27:22 +02:00
benpicco
10296605e0
Merge pull request #18761 from krzysztof-cabaj/sys-shell
sys/shell: fix deprecated shell_command in examples and tests
2022-10-19 23:02:36 +02:00
Hendrik van Essen
9f7c898eb5 examples/gcoap_dtls: add IPv4 support 2022-10-18 10:59:45 +02:00
Hendrik van Essen
226dce01bf examples/gcoap: add IPv4 support 2022-10-18 10:59:43 +02:00
krzysztof-cabaj
19e9b8eeef examples/sniffer: fix deprecated shell_commands 2022-10-17 15:46:23 -04:00
Benjamin Valentin
2fd6cf7ee7 tests: update Makefile.ci for blxxxpill-128kib with CDC ACM 2022-10-15 23:33:41 +02:00
chrysn
982ec4dcda
gnrc_netreg: Use locks around netreg
This eliminates race conditions around unregistering netdevs.

gnrc_netreg_lookup-style functions perform a DEVELHELP check on whether
that lock is held.
2022-10-14 03:35:15 +02:00
Martine Lenders
a617700285
examples/telnet_server: add stm32f7508-dk to BOARD_INSUFFICIENT_MEMORY 2022-10-10 14:06:23 +02:00
chrysn
69cb6b12fc rust: Update dependencies
The change in 399e25cc was did not have the intended effect: As the
local crates still all defined 0.7 as the riot-wrappers version, that
dependency was actually down- rather than upgraded, and thus did not
effect the stabilizations.
2022-10-04 00:28:46 +02:00
chrysn
b31eb6b15c
Merge pull request #18678 from chrysn-pull-requests/rust-update-20221001
rust: Update dependencies, build and test more on stable
2022-10-02 18:09:31 +02:00
chrysn
963fa85893 rust-gcoap: Add Rust options for small binaries (-Os) 2022-10-01 22:07:02 +02:00
chrysn
8a61ed1caa rust: Set panic=abort on path towards building on stable 2022-10-01 21:31:24 +02:00
chrysn
399e25cce3 rust: Update dependencies
This pulls in versions of previously nightly-only crates that can be
built on 1.65 beta.

The Cargo overrides that direct the resolver to the git repositories are
disabled while the version used in tree also happens to be a released
version of the crates, as it should be the case as per [251].

[251]: https://github.com/RIOT-OS/Release-Specs/issues/251
2022-10-01 21:29:20 +02:00
José Alamos
f022ac3e23
Merge pull request #17884 from Ollrogge/gnrc_lorawan1.1
gnrc/lorawan: add basic LoRaWAN 1.1 features
2022-09-30 11:29:55 +02:00
Ollrogge
32cef708a7 gnrc/lorawan: uncrustify files 2022-09-29 11:26:04 +02:00
Ollrogge
12a4e1c1ec gnrc/lorawan: add support for GNRC LoRaWAN 1.1 2022-09-29 11:25:56 +02:00
Marian Buschsieweke
edcba449f3
Merge pull request #18660 from bergzand/pr/gcoap_dtls/add_usage
examples/gcoap_dtls: Add coap-client example
2022-09-28 19:12:16 +02:00
9b47caa025
examples/gcoap_dtls: Add coap-client example 2022-09-28 12:10:17 +02:00
d88e666080 examples/micropython: re-enable CI test on non-native 2022-09-27 15:03:14 +02:00
0a1d014299 examples/micropython: disable on CI for native 2022-09-27 09:49:25 +02:00
chrysn
168ec76a17 rust: Update dependencies
This will allow more components to build on 1.64 stable, and contains a
fix relevant for https://github.com/RIOT-OS/RIOT/pull/18619.

CoAP modules are held back as they appear to need an even newer nightly
than in the current riotdocker to build without feature declarations.
2022-09-25 10:16:27 +02:00
chrysn
59d184f170 examples/spectrum-scanner: Fix building on PIC32 and RISC-V 2022-09-20 13:46:07 +02:00
Martine Lenders
13f94cb11c examples: sniffer / spectrum_analyzer: amend Makefile.ci 2022-09-20 13:46:07 +02:00
chrysn
f738c9bb41 Move in RIOT/applications 2022-09-20 11:52:30 +02:00
chrysn
ff3d3b5ba2 makefiles: Adjust paths of RIOT-applications to run from examples 2022-09-20 11:49:56 +02:00
chrysn
17a042a060 Move RIOT-applications into examples 2022-09-20 11:49:33 +02:00
Marian Buschsieweke
a04b0a01a2
examples,tests: replace deprecated module names by new names 2022-09-16 13:15:46 +02:00
Marian Buschsieweke
c06335b71b
sys/shell: make cmds submodules
Previously `shell_commands` was a "catch-all" module that included
shell commands for each and every used module that has a shell
companion. Instead, the new `shell_cmds` module is now used to provide
shell commands as individually selectable submodules, e.g.
`cmd_gnrc_icmpv6_echo` now provides the ICMPv6 echo command (a.k.a.
ping).

To still have a "catch all" module to pull in shell commands of modules
already used, `shell_cmds_default` was introduced. `shell_commands`
depends now on `shell_cmds_default` for backward compatibility, but
has been deprecated. New apps should use `shell_cmds_default`
instead.

For a handful of shell commands individual selection was already
possible. Those modules now depend on the corresponding `cmd_%` module
and they have been deprecated.
2022-09-16 13:15:45 +02:00
Benjamin Valentin
15a43f28f2 suit: start worker thread on demand 2022-09-05 07:46:56 +02:00
Benjamin Valentin
f95d577245 suit: make use of worker functions 2022-09-03 23:25:01 +02:00
Marian Buschsieweke
089d8aba43
examples,tests: ignore core dumps via .gitignore
This will ignore files named `core` and `core.*` (except `core.c`,
`core.h`, `core.md`, `core.txt`) placed directly in the application
folder. This is where `make` is typically called and core dump due to
a crashing native application, flashing tool, or GDB would be placed.
The pattern is intentionally quite narrow, as there is e.g. a core
source folder that should still be monitored.
2022-08-31 15:05:14 +02:00
Benjamin Valentin
e657590ce0 examples/filesystem: drop manual mounts
File systems should be mounted via `vfs_default`, not manually by
the application.

Also, `vfs` gained the `format` sub-command, so no need to provide
it in the example application.
2022-08-21 22:55:30 +02:00
chrysn
0a4bd3d68f
Merge pull request #18389 from chrysn-pull-requests/rust-cstr-update
rust: Update cstr dependency
2022-08-20 15:43:44 +02:00
benpicco
c125e3d98a
Merge pull request #18133 from fabian18/gcoap_fileserver_file_and_directory_creation
gcoap/fileserver: add file and directory creation and deletion
2022-08-04 16:14:29 +02:00
Fabian Hüßler
9333970b77 gcoap/fileserver: make PUT and DELETE pseudomodules 2022-08-03 22:10:30 +02:00
Fabian Hüßler
688acff5bc gcoap/fileserver: implement PUT/POST/DELETE functionality 2022-08-03 22:09:21 +02:00
chrysn
863a1c2ac1 rust: Update cstr dependency
A change in Rust nightly features broke version 0.2.5 of the `cstr`
crate, whose nightly-only features are enabled in some examples. The
breakage was quickly fixed upstream in the 0.2.6 version, this updates
the locks.
2022-08-01 16:36:43 +02:00
chrysn
86dc086379 rust: Bring lock files in sync with toml files
The riotmodules dependency was missed in bc8ec6d5, and while generally
it does not severly harm builds, it does harm builds riotdocker CI where
branches are switched, which is blocked by dirty files in the checkout.

The riot-wrappers version was missed when what is now 5e75f4bd was
rebased onto fdc4e11a.
2022-08-01 16:28:12 +02:00
Martine Lenders
2679fcafb1
examples/dtls-echo: set address family for sessions
d424aaedac introduced address families to
the RIOT interpretation of tinydtls-`session_t`s. However, while fixing
the naming for the `addr` field, it did not set the `family` member for
the sessions in the `dtls-echo` example, having that example run into [an
assertion][1]. This patch fixes that.

[1]: bda40789a7/session.c (L146)
2022-07-26 15:51:07 +02:00
Marian Buschsieweke
3a5e3636bb
sys/shell/commands/sc_gnrc_icmpv6_echo: fix dependency
Add missing dependency to xtimer so that the shell command `ping` is
again provided when requested.
2022-07-21 13:20:10 +02:00
Benjamin Valentin
3806f7d532 nanocoap: make coap_request_ctx_t members internal 2022-07-17 14:32:16 +02:00
Benjamin Valentin
e8829d5591 gcoap_fileserver: make use of coap_request_ctx_t 2022-07-17 14:32:16 +02:00
Benjamin Valentin
598494f75f examples: make use of coap_request_ctx_t 2022-07-17 14:32:16 +02:00
Benjamin Valentin
a6c617a221 gcoap: make use of coap_request_ctx_t 2022-07-17 14:29:39 +02:00
Benjamin Valentin
acfab72296 nanocoap: make use of coap_request_ctx_t 2022-07-17 14:29:39 +02:00
Martine Lenders
45ebbc8935
Merge pull request #18308 from nmeum/pr/fix_gnrc_border_router_doc
gnrc_border_router: Fix syntax error in Kea configuration
2022-07-12 21:52:57 +02:00
Sören Tempel
594333d596 gnrc_border_router: Fix syntax error in Kea configuration
The last element of a JSON array must not be terminated with a `,`
character. As such, the configuration documented currently in the
`README.md` file of gnrc_border_router is invalid and rejected by
Kea.
2022-07-12 21:52:25 +02:00
benpicco
b68c17188f
Merge pull request #16993 from benpicco/examples/gnrc_border_router-auto_subnets
examples/gnrc_border_router: allow to use gnrc_ipv6_auto_subnets for prefix configuration
2022-07-12 11:02:09 +02:00
chrysn
d9879c96ca
Merge pull request #16833 from chrysn-pull-requests/rust-lib
Add some Rust library building infrastructure
2022-07-10 21:39:35 +02:00
chrysn
bc8ec6d542 rust: Make examples / tests use any Rust RIOT modules 2022-07-10 21:27:13 +02:00
Marian Buschsieweke
fcbba02daf
Merge pull request #18256 from Teufelchen1/chore/macos
Documentation: Renaming OS X to macOS
2022-06-30 07:05:48 +02:00
benpicco
eada4f0b75
Merge pull request #18157 from benpicco/suit-key-dir
makefiles/suit: place keys in $XDG_DATA_HOME
2022-06-28 16:01:11 +02:00
Teufelchen1
1231807bab Documentation: Renaming OS X to macOS 2022-06-23 17:25:48 +02:00
chrysn
5cde02177c rust: Explicitly select nightly
Examples have previously relied on the (really: some) nightly toolchain
to be the default. As that, in practice, is a problematic assumption,
the latest toolchain to use is now determined programmatically, and that
is set explicitly on the examples that use nightly.

Workaround-For: https://github.com/rust-lang/rustup/issues/3015
2022-06-22 12:07:45 +02:00
Martine Lenders
03dfad899b
Merge pull request #17834 from haukepetersen/opt_skald_advitvlconfig
net/ble/skald: make advertising interval configurable per context
2022-06-21 13:31:57 +02:00
chrysn
f4691db39d
Merge pull request #18181 from chrysn-pull-requests/rust-updates-20220608
rust: Update versions
2022-06-09 13:40:02 +02:00
chrysn
92d34741b0 rust: Update versions 2022-06-08 17:59:44 +02:00
Benjamin Valentin
80b7b79543 examples/telnet_server: fix build with shell_lock 2022-06-08 13:01:23 +02:00
Marian Buschsieweke
20d3304077
Merge pull request #18152 from maribu/sys/shell_commands
sys/shell_commands: convert to SHELL_COMMAND()
2022-06-08 06:40:46 +02:00
benpicco
380144f5e9
Merge pull request #17899 from benpicco/examples/telnet_server-lwip
examples/telnet_server: add support for LWIP
2022-06-07 10:31:04 +02:00
benpicco
6019925c75
Merge pull request #17943 from fjmolinas/pr_suit_vfs_storage
sys/suit/storage/vfs: initial import
2022-06-07 09:33:37 +02:00
Marian Buschsieweke
5ea582b3dd
sys/shell_commands: convert to SHELL_COMMAND()
Make use of XFA for shell commands
2022-06-07 09:25:04 +02:00
Francisco
f6d5a54c3e
Merge pull request #18045 from benpicco/suit/transport-vfs
suit/transport/vfs: add VFS as source for firmware updates
2022-06-07 08:32:15 +02:00
Benjamin Valentin
d6f2c883c5 examples/telnet_server: add support for LWIP 2022-06-07 01:30:02 +02:00
Marian Buschsieweke
6b2a1f7330
examples/telnet_server: use netifs_print_ipv6() 2022-06-06 20:46:48 +02:00
Marian Buschsieweke
501a5b951f
examples/nanocoap_server: use netifs_print_ipv6() 2022-06-06 20:46:48 +02:00
Marian Buschsieweke
b564f95757
examples/gnrc_minimal: use netifs_print_ipv6() 2022-06-06 20:46:48 +02:00
Francisco Molina
d33d0a4065 examples/suit_update: adapt python test to native 2022-06-03 08:49:44 +02:00
Francisco Molina
96b81596f0 examples/suit_update: apply blake 2022-06-03 08:49:44 +02:00
Francisco Molina
97708cf96a examples/suit_update: add vfs storage for native 2022-06-03 08:49:44 +02:00
Gunar Schorcht
c5be3d0751 examples: add esp32-ci / esp8266-ci as external boards
Add `esp32-ci` and `esp8266-ci` as external boards to cover optional modules by CI compilation:
- examples/gnrc_networking to cover ESP32/ESP8266 `esp_wifi_ap`
- examples/gnrc_minimal to cover ESP32 `esp_wifi_enterprise`
2022-06-03 07:33:44 +02:00
Benjamin Valentin
5e52d15409 makefiles/suit: place keys in $XDG_DATA_HOME
Placing the SUIT key in the RIOT repository folder is dangerous as
a repo checkout is by most people considered a volatile location.
Since all important files are stored in git, deleting the entire folder
or it's contents is not an uncommon cleanup operation.

If the user is at that point unaware that SUIT key material is stored
in that folder, that key will then be lost.

Another workflow may involve multiple checkouts of the RIOT repository
to multiple folders to work on several features at the same time, or for
easy cross-referencing or splitting of off features from an integration
into a feature branch.
In that case each checkout would use it's own incompatible SUIT key.

To avoid all these pitfalls, place the SUIT keys outside the RIOT
repository in the $XDG_DATA_HOME directory.
2022-06-02 13:07:17 +02:00
Benjamin Valentin
e16074f8ae examples/suit_update: enable VFS transport 2022-06-01 13:00:51 +02:00
chrysn
f89324ad4a {examples,tests}/rust: Rust updates
This is not so much an update (riot-wrappers stays at the same commit,
riot-sys just advances by one that re-enables an optional dependency,
but of course third party crates are updated) but more reflects the
switch from using released crates to git versions.
2022-05-31 17:44:41 +02:00
Hauke Petersen
ef925b5884 examples/skald_ibeacon: explicitly configure itvl 2022-05-24 13:02:10 +02:00
Hauke Petersen
4afda0d6f3 examples/skald_eddystone: explicitly config itvl 2022-05-24 13:02:10 +02:00
Benjamin Valentin
ad7d974183 nanocoap: define default block size 2022-05-24 09:32:09 +02:00
Benjamin Valentin
d4db82c39b examples/gcoap_fileserver: add CoAP fileserver example 2022-05-22 16:56:25 +02:00
Martine Lenders
06a164bc0b
examples/gcoap_dtls: remove CFLAGS define of DTLS_PEER_MAX 2022-05-16 16:26:36 +02:00
benpicco
32def76a3c
Merge pull request #17338 from benpicco/tools/zep_dispatch-mac_pin
tools/zep_dispatch: allow to pin nodes to MAC address
2022-05-06 21:52:13 +02:00
Kevin "Tristate Tom" Weiss
f4141c676e
Merge pull request #18017 from aabadie/pr/pkg/lua-kconfig
pkg/lua: model in kconfig
2022-05-03 11:46:17 +02:00
chrysn
ec498cd51c {examples,tests}/rust: Rust updates
Updating to riot-sys 0.7.7 enables support for more recent C2Rust
versions, and to riot-wrappers 0.7.22 unblocks [17990].

[17990]: https://github.com/RIOT-OS/RIOT/pull/17990
2022-05-03 09:23:24 +02:00
9538b880e0
Merge pull request #18012 from aabadie/pr/pkg/jerrycript_kconfig
pkg/jerryscript: model in Kconfig
2022-04-27 19:10:20 +02:00
Martine Lenders
b167d6931c
Merge pull request #17774 from fjmolinas/pr_nimble_auto_adv_extended
pkg/nimble/autoadv: add support for ext_adv
2022-04-27 16:44:46 +02:00
cf0b3ded3c
examples: tests: lua: add Kconfig configuration 2022-04-27 11:12:27 +02:00
ad94965777
examples/javascript: add Kconfig configuration 2022-04-27 11:08:27 +02:00
Francisco Molina
a5f54b5a03 examples/twr_aloha: default print rng result only on initiator 2022-04-27 09:12:39 +02:00
Francisco Molina
f5a4a486f6 examples/twr_aloha: error on invalid short address 2022-04-27 09:12:39 +02:00
Francisco Molina
90af3bd026 examples/twr_aloha: add channel and txpower to ifconfig 2022-04-27 09:12:39 +02:00
Francisco Molina
544551de86 examples/twr_aloha: interaction, add missing addr parameter 2022-04-27 09:04:12 +02:00
Francisco Molina
32e78fa921 examples/twr_aloha: fix shell blocking function 2022-04-27 09:01:01 +02:00
Francisco Molina
26969e299b examples/twr_aloha: fix sleep logic 2022-04-27 08:38:34 +02:00
Francisco Molina
3702087084 pkg/nimble/autoadv: add support for ext_adv 2022-04-27 08:22:58 +02:00
0378f54dbb
Merge pull request #17695 from fjmolinas/pr_example_lorawan_usage
examples/lorawan/main: use auto_init_loramac
2022-04-26 10:12:15 +02:00
Francisco Molina
2bbd844adf examples/twr_aloha/Makefile: add mention to uwb-core_rng_trx_info 2022-04-25 13:21:09 +02:00
Francisco Molina
da9a37a984 pkg/nimble/autoadv: prefix configurations with CONFIG_ 2022-04-25 08:43:51 +02:00
Benjamin Valentin
15ab9bbdcd tools/usb-cdc-ecm: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
efb4b2ea61 tools/sliptty: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
83c2d1bebe tools/ethos: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
8557a15c8f tools/zep_dispatch: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
53601df430 examples/gnrc_border_router: allow more than two ways to obtain a prefix 2022-04-22 22:22:28 +02:00
Francisco
21be49a16a
Merge pull request #17973 from fjmolinas/pr_examples_suit_seq_no
examples/suit_update/test: use 'suit seq_no' to get version
2022-04-22 08:47:32 +02:00
Francisco Molina
01196b99b7 examples/suit_update/tests: use current version as invalid one
If the current version was 0 then previously an invalid <0 seq_no
would be used.
2022-04-21 16:59:32 +02:00
Francisco Molina
c31d0e102d examples/suit_update/tests: use 'suit seq_no' cmd 2022-04-21 16:59:32 +02:00
Francisco
c5b3b967a2
Merge pull request #16771 from fjmolinas/pr_suit_override_manifest_payloads
makefiles: allow to override suit manifest payloads
2022-04-21 16:54:28 +02:00
Oleg Hahm
843c16ad64
Merge pull request #17974 from benpicco/PM_NUM_MODES-count
pm: don't (un)block IDLE mode
2022-04-21 14:39:07 +02:00
Benjamin Valentin
520aa2d27d examples/lorawan: don't unblock IDLE mode
This is already unblocked and will trigger an assertion.
The code is still broken as other modes might be unblocked too,
but at least it is just as broken as it was before #17895
2022-04-21 12:03:47 +02:00
Francisco Molina
993af3d96a examples/suit_update/README.hardware.md: update logs 2022-04-21 11:39:25 +02:00
Francisco Molina
ac5c316361 makefiles/suit.inc.mk: refactor file storage and naming
- move all generated manifests under $(BINDIR)/suit_files (this can be
overwritten.
- rename signed manifests so that they are of the form:
<somename>.<version>.bin, where <somename> is by default riot.suit.

This avoids cluterring BINDIR while as well having a naming scheme that
allows custom names for manifests addresssing different types of
payloads.
2022-04-21 11:39:25 +02:00
Francisco Molina
af6acdd934 examples/lorawan: use auto_init_loramac 2022-04-21 11:26:56 +02:00
8b7a8055c4
examples/lorawan: disable loramac state persistence on EEPROM
The code is kept but disabled by default. A comment explains how to avoid issues when enabling it
2022-04-20 18:21:47 +02:00
Francisco Molina
c4cadbc43f examples/suit_udpate: update check suit command 2022-04-19 13:11:24 +02:00
12758b94fc
Merge pull request #17954 from aabadie/pr/boards/stm32f750n8-dk
boards/stm32f750n8-dk: add support
2022-04-15 15:05:55 +02:00
d5e184b326
examples: tests: update Makefile.ci with stm32f7508-dk
This commit also makes some cleanup in the files since add_insufficient_memory_board.sh was used for the update
2022-04-15 12:51:58 +02:00
cad8d4f900
examples/wasm: ignore generated hello.wasm 2022-04-14 21:32:10 +02:00
Oleg Hahm
f3ffe134b0
Merge pull request #17895 from benpicco/pm_blocker_array
sys/pm_layered: use array representation, get rid of implicit IDLE mode
2022-04-08 14:04:46 +02:00
Benjamin Valentin
ed9f740edd examples/lorawan: move enabling of sleep modes to C code 2022-04-06 12:29:25 +02:00
benpicco
ac4ac64e58
Merge pull request #17843 from benpicco/gcoap-block-server
examples/gcoap_block_server: add gcoap block server example
2022-04-03 00:19:43 +02:00
Ken Bannister
f04cf579b4 examples/gcoap_block_server: add gcoap block server example 2022-04-02 23:51:51 +02:00
benpicco
cdffc8f0ca
Merge pull request #17859 from benpicco/use_sock_tl_name2ep
treewide: use sock_tl_name2ep() class of functions where applicable
2022-03-29 12:31:51 +02:00
Hendrik van Essen
d424aaedac pkg/tinydtls: add IPv4 support 2022-03-25 17:19:47 +01:00
Leandro Lanzieri
05db36a3d0
pkg/tinydtls: join IPv6 address and port in addr member 2022-03-25 09:44:44 +01:00
Benjamin Valentin
846e681be2 examples: replace sock_udp_str2ep() with sock_udp_name2ep() 2022-03-24 17:11:15 +01:00
20ffa92ba3
Merge pull request #11237 from aabadie/pr/examples/lorawan
examples/lorawan: add the possibility to use ABP activation procedure
2022-03-23 09:33:14 +01:00
chrysn
c688fade36 {examples,tests}/rust: Rust updates
These updates enable tests on beta (stable for the 2022.04 release) on
all platforms, and open the way for [17804].

[17804]: https://github.com/RIOT-OS/RIOT/pull/17804
2022-03-14 16:34:43 +01:00
b22370a2bb
examples/lorawan: update README 2022-03-14 13:44:19 +01:00
099833b488
examples/lorawan: add possibility to use ABP + pm 2022-03-14 13:44:19 +01:00
benpicco
f9544cd32d
Merge pull request #17740 from benpicco/examples/suit_update-doc_fix
examples/suit_update: clarify README.hardware.md
2022-03-09 09:08:45 +01:00
chrysn
d3e1a1ac9c
Merge pull request #17761 from chrysn-pull-requests/riot-updates
{examples,tests}/rust: Rust updates (-sys/-wrappers version, stable)
2022-03-08 23:32:56 +01:00
Benjamin Valentin
e69da7a295 examples/suit_update: clarify README.hardware.md
I had the mistake of creating `coaproot` inside the application
directory, add a few words to prevent that mistake in the future.
2022-03-08 22:54:16 +01:00
chrysn
fce36e2ad2 {examples,tests}/rust: Ready for building on stable Rust
Contributes-To: https://github.com/RIOT-OS/RIOT/issues/17526
2022-03-08 12:44:49 +01:00
chrysn
48a4075dfc {examples,tests}/rust: Follow riot-wrappers deprecations 2022-03-08 12:44:49 +01:00
chrysn
ddc2bf8853 {examples,tests}/rust: cargo update 2022-03-08 12:44:44 +01:00
chrysn
eb03997582 examples/rust-gcoap: Increase gcoap stack
On microbit-v2, getting .well-known/core would otherwise result in a
stack overflow.

Consequently, some boards were removed from the list of supported boards
as the currently required RAM exceeds their capacity.
2022-03-08 12:27:40 +01:00
msimonin
5a795fafe2 Make example/emcute_mqtt honor radio settings
Fix #17772
2022-03-08 11:21:02 +01:00
benpicco
c411edef55
Merge pull request #16688 from miri64/gcoap/enh/multitransport
gcoap: multi-transport support
2022-03-03 12:15:48 +01:00
Marian Buschsieweke
a5b91362cb
Merge pull request #15329 from kfessel/p-add-wamr
pkg/wamr: add WAMR to provide WASM support in RIOT
2022-03-02 19:58:31 +01:00
Karl Fessel
3400819fbd example/wasm: remove allocator selection
add comment refering to the wasm header instead
2022-03-02 12:21:59 +01:00
Benjamin Valentin
c476abe16e examples/telnet_server: add telnet server example 2022-03-01 23:07:22 +01:00
Martine Lenders
287bfdc10d
gcoap: multi-transport support for listeners 2022-03-01 19:33:15 +01:00
Francisco
945dd082b0
Merge pull request #17715 from kfessel/p-add-building-default
tests: add default BOARDS
2022-03-01 10:23:58 +01:00
Karl Fessel
77928ea54f example/arduino_hello-wold: add building BOARD default 2022-02-28 22:00:21 +01:00
Karl Fessel
9a2ccd51f4 examples: add missing includes
thread.h
    gnrc/netif.h
2022-02-28 14:53:08 +01:00
chrysn
40efa06eb4 examples/rust-gcoap: Add CoAP SAUL demo from module examples 2022-02-25 15:06:28 +01:00
chrysn
47b25c3595 examples/rust-gcoap: Increase gcoap stack
On microbit-v2, getting .well-known/core would otherwise result in a
stack overflow.

Consequently, some boards were removed from the list of supported boards
as the currently required RAM exceeds their capacity.
2022-02-25 15:06:28 +01:00
chrysn
1f36afe976 examples/rust-gcoap: Sharpen depenency
Since 9503809f, a relatively recent version of riot-wrappers is
required.
2022-02-25 15:06:28 +01:00
chrysn
9503809f56 examples/rust-gcoap: Follow renames / deprecations of riot-wrappers 2022-02-25 13:11:57 +01:00
chrysn
433d7ba2a5 {examples,tests}/rust: cargo update
This restores compatibility with current nightlies by using the latest
coap-message version (after a nightly-only feature that uses saw a late
change), and also removes obstacles for use with stable Rust 1.59 (in
unrelated parts; the CoAP example is still nightly-only).

Contributes-To: https://github.com/RIOT-OS/RIOT/issues/17526
2022-02-25 12:57:55 +01:00
Benjamin Valentin
92d245de3b examples/gnrc_{networking, border_router}: allow to set ZEP L2 address 2022-02-22 17:35:04 +01:00
Benjamin Valentin
70d9856111 examples/filesystem: remove dedicated FatFS section from readme
FAT now behaves just like all other FSs and does not need special treatment.
2022-02-16 14:35:17 +01:00
Karl Fessel
726c461cb5
Merge pull request #17574 from kfessel/p-fix-asserth
core/assert: avoid including panic.h with assert.h
2022-02-15 11:57:55 +01:00
chrysn
1c3a646936
Merge pull request #17653 from benpicco/cpu/native-fatfs_defaults
boards/native: select MTD defaults for FAT
2022-02-15 09:03:21 +01:00
Benjamin Valentin
cd543f1873 examples/filesystem: adopt README.md after changing MTD defaults 2022-02-14 18:22:17 +01:00
Benjamin Valentin
92d9d5676a sys/vfs: add vfs_default pseudo-module 2022-02-14 13:04:37 +01:00
Karl Fessel
e03cf052ba example/nanocoap_server: include kernel_defines.h 2022-02-12 18:30:58 +01:00
Karl Fessel
fc79d85bcc example/suit_update: include kernel_defines.h 2022-02-12 18:30:58 +01:00
Karl Fessel
8c617abc4c example/wasm: add Makefile.ci 2022-02-11 13:29:40 +01:00
Karl Fessel
20cb961329 example/wasm: add prebuild hello.wasm 2022-02-11 13:29:40 +01:00
Karl Fessel
51c94a1217 example/wasm: simplify example extend sample
* uneventise example
2022-02-11 13:29:40 +01:00
Karl Fessel
df057e09cf example/wasm: split example, eventise and introduce wamr_run 2022-02-11 13:28:53 +01:00
Karl Fessel
4cc9bd9e4e example/wasm: a basic wamr example
* using makefile blobs
* improve usability of example
* add sample with memory saving Makefile
2022-02-11 13:09:50 +01:00
Silke Hofstra
9d61bdbb06 sys/senml: add SenML modules
Add a basic SenML module and submodules with support for:

- Encoding SenML values as CBOR using NanoCBOR.
- Converting from Phydat to SenML.
- Reading and encoding SAUL sensors.
2022-02-11 12:38:21 +01:00
benpicco
be45400631
Merge pull request #17341 from benpicco/vfs-mtd_cleanup
sys/vfs: add file-system auto-mount
2022-02-09 21:50:34 +01:00
Benjamin Valentin
1eebbabe83 examples/filesystem: disable auto-mount 2022-02-09 12:21:53 +01:00
Benjamin Valentin
ae06265de0 pkg/fatfs: VFS: internally handle fatfs_mtd_devs
This makes FAT behave more like the other file systems supported by VFS.
The `fatfs_mtd_devs` array is populated internally so the application does
not have to handle this.
2022-02-09 12:21:53 +01:00
7b06dc2bb2
Merge pull request #17557 from fjmolinas/pr_twr_ci_blacklist
examples/twr_aloha: blacklist test on ci
2022-01-25 11:18:15 +01:00
Francisco Molina
eec37975d5 examples/twr_aloha: change test to tests-with-config
Test can only run on dwm1001 BOARDs.
2022-01-25 09:19:06 +01:00
Hendrik van Essen
e6242ae205 examples/gcoap_dtls: match Makefile of examples/gcoap 2022-01-23 01:33:23 +01:00
c21730a765
Merge pull request #17406 from fjmolinas/pr_twr_aloha_rework
examples/twr_aloha: refactor
2022-01-21 10:08:46 +01:00
Francisco Molina
cd3fa25f06 examples/twr_aloha: refactor 2022-01-21 09:17:00 +01:00
chrysn
deffb350a7 rust: Update to riot-wrappers 0.7.15 2022-01-13 18:52:05 +01:00