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

40161 Commits

Author SHA1 Message Date
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
chrysn
fc6b12a695
Merge pull request #18237 from maribu/boards/thingy52
boards/{thingy52,ruuvitag}: allow OpenOCD as programmer
2022-06-22 10:09:31 +02:00
Martine Lenders
4ed3b1a43c
Merge pull request #17078 from yarrick/ifconfig_order
sys/shell/gnrc_netif: List netifs in registration order
2022-06-22 09:33:58 +02:00
Marian Buschsieweke
e3f5ba90fd
boards/{thingy52,ruuvitag}: allow OpenOCD as programmer 2022-06-21 15:04:13 +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
Erik Ekman
aaa73b79ed sys/shell/gnrc_netif: List netifs in registration order
The netif list is used like a stack, so it needs to be
iterated in reverse to keep the registration order.

Time complexity in O(n^2), but the the list is normally very short
(1-2 items).

Before:
```
> ifconfig
Iface  10  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 0  Link: down
[..]

Iface  7  HWaddr: 24:0A:C4:E6:0E:9F  Link: down
[..]
```

Now they are in the increasing order:
```
> ifconfig
Iface  7  HWaddr: 24:0A:C4:E6:0E:9F  Link: down
[..]

Iface  10  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 0  Link: down
[..]
```

When lwIP is hacked to use the same shell command, it also
lists it interfaces in the expected order (was ET1,ET0 before):
```
> ifconfig
Iface  ET0  HWaddr: 24:0A:C4:E6:0E:9F  Link: down
[..]

Iface  ET1  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 0  Link: down
[..]
```
2022-06-21 11:54:08 +02:00
benpicco
1e87e3f904
Merge pull request #18225 from krzysztof-cabaj/doc-nucleo32
boards/nucleo32: doc update - usage of cpy2remed programmer and short overview of board
2022-06-21 11:25:52 +02:00
benpicco
1fba8d3d76
Merge pull request #18232 from benpicco/nmi_handler
cpu/cortexm_common: allow to overwrite nmi_handler
2022-06-21 09:39:15 +02:00
Gunar Schorcht
24103ad58a
Merge pull request #18215 from benpicco/pkg/driver_atwinc15x0-bump
pkg/driver_atwinc15x0: bump version to 1.6.1
2022-06-20 18:48:53 +02:00
Benjamin Valentin
8cf20a286d cpu/cortexm_common: allow to overwrite nmi_handler
If a user wants to handle NMI events, let them do so by
providing an implementation for nmi_handler() instead of
paniking.
2022-06-20 18:22:22 +02:00
fabian18
780f0a595c
Merge pull request #18231 from benpicco/mtd_write_page_raw-doc
dirvers/mtd: fix documentation of mtd_write_page_raw() and mtd_read_page()
2022-06-20 15:35:05 +02:00
Benjamin Valentin
bede0615ad drivers/mtd: fix doc of mtd_read_page(), mtd_write_page_raw()
The function allows for offsets greater than the page size.
2022-06-20 14:59:41 +02:00
benpicco
1638606c5c
Merge pull request #18218 from gschorcht/boards/esp32/cleanup_ci_compilation
boards/esp32: cleanup CI compilation for esp_wifi_enterprise
2022-06-19 17:01:13 +02:00
Benjamin Valentin
f8431d7623 drivers/atwinc15x0: blacklist esp8266 2022-06-19 16:53:34 +02:00
benpicco
e32c19f4a3
Merge pull request #18202 from gschorcht/cpu/esp32/remove_dep_on_libc_gettimeofday
cpu/esp32: Remove dependency on module libc_gettimeofday
2022-06-18 18:45:44 +02:00
Gunar Schorcht
4dc5e86b2a cpu/esp32: remove libc_gettimeofday dependency 2022-06-18 16:35:11 +02:00
Gunar Schorcht
8796513ac1 cpu/esp32: add missing newlibc function _gettimeofday_r 2022-06-18 16:34:40 +02:00
Gunar Schorcht
e6823edb6a
Merge pull request #18216 from maribu/makefiles/tests/tests.inc.mk
makefiles/tests: use BINFILE for hash comparision instead of ELFFILE
2022-06-18 14:42:19 +02:00
Marian Buschsieweke
a247e87f8e
Makefile.include: fix typo 2022-06-17 18:31:17 +02:00
Marian Buschsieweke
d1317abc02
makefiles/tests: use FLASHFILE for hash comparision instead of ELFFILE
Let's consider firmwares as identical if their flash files are matching.
This will have the side effect that hash mismatches for ESP32 due to
different .debug sections in the ELFFILE are prevented, as for ESP32
the BINFILE is used.
2022-06-17 18:31:17 +02:00
Gunar Schorcht
934c65fb2e
Merge pull request #18212 from benpicco/kernel_defines-CONST
core/kernel_defines: drop CONST definition
2022-06-17 17:45:46 +02:00
benpicco
24f7cbf9bb
Merge pull request #18222 from benpicco/sam0_sdhc-align
cpu/sam0_common: mtd_sdhc: ensure source address alignment
2022-06-17 10:15:46 +02:00
benpicco
b2ed5af665
Merge pull request #18221 from benpicco/nanocoap_sock_request_cb-assert
nanocoap_sock: fix wrong assertion
2022-06-17 10:14:11 +02:00
krzysztof-cabaj
49d8b0a892 boards/nucleo32: fix static test issues 2022-06-17 03:41:22 -04:00
krzysztof-cabaj
fdc7d655ea boards/nucleo-l412kb: add board short description and flashing command 2022-06-17 03:21:40 -04:00
Marian Buschsieweke
3f28e2314a
Merge pull request #18219 from maribu/cpu/stm32/periph_eth
cpu/stm32/periph_eth: enable stm32_eth_link_up with lwip_ipv6
2022-06-17 08:51:47 +02:00
Benjamin Valentin
e8fd493f41 cpu/sam0_common: mtd_sdhc: ensure source address alignment
The source / destination address of the SDHC transfer needs to be
word-aligned.

Use the mtd buffer to fix the alignment if `mtd_write_page` is used,
otherwise return -ENOTSUP.
2022-06-16 18:58:10 +02:00
Benjamin Valentin
11e40a9d61 nanocoap_sock: fix wrong assertion
The assertion is a bit overeager.
In case of receiving a wrong message ID, we re-try receive without
entering the STATE_REQUEST_SEND state again, so it is expected that
we get a non-NULL ctx/response from sock_udp_recv_buf().

What this assert should actually check is that we don't get a non-NULL
ctx after calling sock_udp_recv_buf() with a non-NULL ctx.

So make this explicit to not falsely fail the assertion.
2022-06-16 18:54:16 +02:00
krzysztof-cabaj
606df51111 boards/nucleo: change all memory size to KiB 2022-06-16 12:46:42 -04:00
krzysztof-cabaj
c378f9dec0 boards/nucleo-l011k4: add board short descritpion and flashing command 2022-06-16 12:30:16 -04:00
benpicco
809f9ed174
Merge pull request #18207 from gschorcht/cpu/esp32/fix_shell_reboot
cpu/esp32: fix pm_reboot function
2022-06-16 16:47:31 +02:00
Marian Buschsieweke
c9798c86ce
cpu/stm32/periph_eth: enable stm32_eth_link_up with lwip_ipv6
An network devices that supports netdev_driver_t::get(NETOPT_LINK, ...)
also has to emit NETDEV_EVENT_LINK_UP and NETDEV_EVENT_LINK_DOWN with
lwip for IPv6 duplicate address detection to work. The background is
that the STM32 Ethernet MAC requires a periodic timer to poll for the
state to emit these events. For this reason, `stm32_eth_link_up` was
introduced to allow applications to select if they need these events.

With this dependency in place, IPv6 addresses won't get stuck in a
tentative state any more.
2022-06-16 15:45:24 +02:00
Benjamin Valentin
2e7d35f760 core/kernel_defines: drop CONST definition
This is not used anywhere in RIOT, but causes conflicts with external
library code.

So let's just get rid of this.
2022-06-16 15:26:27 +02:00
Benjamin Valentin
7bc1fea55a sys/tm: drop CONST 2022-06-16 15:26:27 +02:00
Gunar Schorcht
3414629614 boards/esp32-ci: define ESP_WIFI_EAP_* variables
`ESP_WIFI_EAP_USER` and `ESP_WIFI_EAP_PASS` have to be defined because this board is used in the CI to compile the optional module `esp_wifi_enterprise`.
2022-06-16 14:20:11 +02:00
Gunar Schorcht
54c1cd673e boards/esp32-wrover-kit: revert changes in commit b74c456
In the board definition of `esp32_wrover_kit` default values for `ESP_WIFI_EAP_USER` and `ESP_WIFI_EAP_PASS` had to be defined because this board was used in the CI to compile the optional module `esp_wifi_enterprise`. Now that the CI compilation for the `esp_wifi_enterprise` module is realized by an external board definition `esp32-ci`, these default values should be removed to make the compilation fail if the user did not define these variables.
2022-06-16 14:11:58 +02:00
Gunar Schorcht
0622d45949 cpu/esp32: fix pm_reboot function 2022-06-16 13:40:08 +02:00
Marian Buschsieweke
6db97e2871
Merge pull request #18209 from gschorcht/cpu/esp32/fix_malloc_thread_safety
cpu/esp32: fix malloc thread safety
2022-06-16 13:39:26 +02:00
Marian Buschsieweke
dd6243f27f
Merge pull request #18213 from maribu/sys/shell/commands/sc_lwip_netif.c
sys/shell/commands/sc_lwip_netif.c: add address state
2022-06-16 13:38:55 +02:00
benpicco
0a16f8266a
Merge pull request #17962 from benpicco/nanocoap_vfs-put
nanocoap_vfs: add nanocoap_vfs_put()
2022-06-16 11:53:36 +02:00
Gunar Schorcht
058c882495
Merge pull request #18214 from benpicco/drivers/atwinc15x0-timeout
drivers/atwinc15x0: add timeout to init
2022-06-16 11:52:16 +02:00
Marian Buschsieweke
3954217fdf
sys/shell/commands/sc_lwip_netif.c: add address state
Add information about the address state (e.g. if it is valid, preferred,
tentative, how many probes have been sent)
2022-06-16 08:40:42 +02:00
benpicco
55b57e1a75
Merge pull request #18208 from chrysn-pull-requests/rust-doc-update
doc/rust: Update texts
2022-06-15 21:58:23 +02:00
Benjamin Valentin
9c8fa57f4d drivers/atwinc15x0: add timeout to init
This enables a timeout on init to not hang there forever if init
fails but instead return an error.
2022-06-15 18:19:37 +02:00
Benjamin Valentin
2b401b4a22 pkg/driver_atwinc15x0: bump version 2022-06-15 14:37:03 +02:00
Marian Buschsieweke
90b373e1f2
Merge pull request #18206 from maribu/dist/tools/compile_commands
dist/tools/compile_commands: fix clangd mode with ESP32
2022-06-15 14:36:19 +02:00
krzysztof-cabaj
27baf67b16 boards/nucleo-f042k8: add short info about board and flashing command 2022-06-15 04:31:55 -04:00
krzysztof-cabaj
18f3b1d31c boards/nucleo-f031k6: add board overview and info about flashing 2022-06-15 04:18:40 -04:00
Gunar Schorcht
041fe58209 cpu/esp32: add malloc_thread_safe if esp_idf_heap not used 2022-06-15 07:31:02 +02:00
chrysn
1e7ac17e07 doc/rust: Migrate and modernize text from rust_minimal README
This is a rewrite of text that has come to be quite outdated, pulled
into the central location for information about RIOT's Rust integration.
2022-06-15 00:01:27 +02:00