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

40288 Commits

Author SHA1 Message Date
Marian Buschsieweke
29d21938aa
Merge pull request #18210 from maribu/cpu/esp32
cpu/esp32: enforce MAXTHREADS is at least 3
2022-07-06 17:57:48 +02:00
Peter Kietzmann
9af87803c6
Merge pull request #18137 from Einhornhool/pr/update-cryptoauth-package
pkg/cryptoauthlib: Update package to latest version
2022-07-06 13:30:16 +02:00
Lena Boeckmann
422d81a2b4 pkg/cryptoauthlib: Update package to latest version 2022-07-06 10:45:39 +02:00
Marian Buschsieweke
026854d788
cpu/esp32: make sure MAXTHREADS is at least 3
ESP32 has an esp_timer thread in addition to the main and the idle
thread. So applications that work fine with 2 threads on other
platforms will break on ESP32.
2022-07-06 09:00:13 +02:00
Marian Buschsieweke
f59e910fd2
tests/periph_gpio_ll: Account for extra thread needed for ESP32 2022-07-06 09:00:13 +02:00
Marian Buschsieweke
91afd31425
tests/pkg_fff: Account for extra thread needed for ESP32 2022-07-06 09:00:13 +02:00
1c8116b5f8
Merge pull request #18296 from vacore/stm32g0b1re
cpu/stm32: support for B subfamily of g0 to determine the ram length
2022-07-06 07:10:51 +02:00
Dmitriy Okladov
9304e2bf37 cpu/stm32: support for B subfamily of g0 to determine ram length 2022-07-05 19:10:16 +03:00
Marian Buschsieweke
1e17aae6a9
Merge pull request #18291 from krzysztof-cabaj/doc-nucleo144
boards/nucleo144: doc update - usage of cpy2remed programmer and short overview of board
2022-07-04 21:47:15 +02:00
krzysztof-cabaj
bd4e5aa0c4 boards/nucleo-f412zg: fixup trailing whitespace 2022-07-04 14:03:55 -04:00
krzysztof-cabaj
b1c50fe89a boards/nucleo-f413zh: add short board info and flashing commands 2022-07-04 14:03:55 -04:00
krzysztof-cabaj
f9ca5bdc3d boards/nucleo-f412zg: add short board doc and flashing commands 2022-07-04 14:03:55 -04:00
krzysztof-cabaj
a802e3d496 boards/nucleo-f722ze:short board info and cpy2remed flashing command 2022-07-04 14:03:44 -04:00
krzysztof-cabaj
08587ffd39 boards/nucleo-f746zg: add short bord description and flashing commands 2022-07-04 14:03:44 -04:00
krzysztof-cabaj
033f61bd1f boards/nucleo-439zi: add short board info 2022-07-04 14:03:44 -04:00
krzysztof-cabaj
82200744c7 boards/nucleo144: fix all memory sizes to KiB and MiB 2022-07-04 14:03:44 -04:00
krzysztof-cabaj
c9441272e4 boards/nucleo-f767zi:short board info and cpy2remed flashing command 2022-07-04 14:01:48 -04:00
Marian Buschsieweke
d337997e5a
Merge pull request #18277 from gschorcht/cpu/esp/periph_hal_esp32_hwrng
cpu/esp_common: use ESP-IDF random API for ESP32
2022-07-04 19:02:58 +02:00
Marian Buschsieweke
04fc22e031
Merge pull request #18194 from benpicco/dist/tools/cosy-port
dist/tools/cosy: allow to specify port
2022-07-04 14:44:44 +02:00
Kevin "Tristate Tom" Weiss
e43313d647
Merge pull request #18287 from MrKevinWeiss/pr/fixemlearn
pkg/emlearn: Remove unused emlearn module
2022-07-04 08:21:39 +02:00
Marian Buschsieweke
df556311ce
Merge pull request #18290 from eduazocar/feature/at86rf2xx_random_numbers
drivers/at86rf2xx: Switch SRT mode to get random values.
2022-07-04 06:44:46 +02:00
eduazocar
e6a7039de4 drivers/at86rf2xx: Adding Switch SRT to Random Number Generator 2022-07-03 17:44:47 -04:00
Martine Lenders
932c58d89f
Merge pull request #18289 from nmeum/pr/emcute_deadlock_suback
asymcute: Fix deadlocks in REGACK, SUBACK and UNSUBACK handler
2022-07-01 17:11:13 +02:00
Martine Lenders
fda230eb7c
Merge pull request #18275 from maribu/sys/net/rpl/netstats
sys/net/gnrc/rpl: sync access to netstats
2022-07-01 12:24:24 +02:00
Sören Tempel
4dcb8edcc8 asymcute: Fix deadlocks in REGACK, SUBACK and UNSUBACK handler
The handlers for these MQTT message lock the connection mutex on
function entry. During automated testing of asymcute, I discovered
return paths for these function which do not unlock the connection
mutex. This results in a deadlock which prevents asymcute from
sending any further messages.
2022-07-01 00:55:07 +02:00
chrysn
cb5d4f88f9
Merge pull request #18255 from maribu/tests/thread_float
tests/thread_float: fix test script
2022-07-01 00:39:57 +02:00
Marian Buschsieweke
94ccc6c7dc
tests/thread_float: clean up and fix test script
Split out the regex that matches the output line into a dedicated
function (as it is used three times) and make it also accept nan and
inf as double values. Previously a nan didn't match and occasional
nans were not detected as a test failure.
2022-06-30 19:15:08 +02:00
Marian Buschsieweke
0beb636bf3
tests/thread_float: fix test script
Previously the test script expected runnable threads of the same
priority to be running in a specific order. But the only tool that is
guaranteed to enforce a specific order of runnable threads is assigning
them different priority levels.

This should fix a test failure in the nightlies.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2022-06-30 19:15:08 +02:00
krzysztof-cabaj
86cfca3eae boards/nucleo-l4z5zi: add command for flashing using cpy2remed 2022-06-30 08:30:51 -04:00
Gunar Schorcht
02310b1148 cpu/esp_common: port periph/hwrng to ESP-IDF random API 2022-06-30 11:10:02 +02:00
MrKevinWeiss
f3aa0f9bb0
pkg/emlearn: Remove unused emlearn module
There was a mismatch between Kconfig and make, after some digging it
appears that the make never used the emlearn module, only the package.

This removes the emlearn pseudomodule from make since nothing selects it
and removes the MODULE_EMLEARN from Kconfig to match the make dependency
resolution.
2022-06-30 10:06:59 +02:00
Marian Buschsieweke
5a47d6a9b8
sys/net/gnrc/rpl: sync access to netstats
Synchronize the RPL thread updating the RPL netstats with the RPL
shell command reading it by disabling IRQs. This will prevent printing
corrupted data on non-32bit platforms as well as printing inconsistent
data (e.g. TX count of old state in conjunction with TX bytes of new
state) for all platforms.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2022-06-30 09:48:46 +02:00
Marian Buschsieweke
93d8bade8e
sys/net/gnrc/rpl: refactor netstats_rpl_t
There is a repeating pattern in the struct that is split out into a
subtype in this commit. This makes handling the data easier, as now
done in the print routine.
2022-06-30 09:48:45 +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
krzysztof-cabaj
53f33b32fa boards/nucleo-l496zg: add short board info and flashing commands 2022-06-29 12:35:48 -04:00
Martine Lenders
d9846e414f
Merge pull request #18269 from maribu/sys/net/netstats
sys/net/netopt: change NETOPT_STATS semantics
2022-06-29 15:52:03 +02:00
benpicco
a1ee44e114
Merge pull request #18263 from maribu/cpu/avr8/idle_stack
cpu/{atmega_common,atxmega}: increase idle thread stack size
2022-06-29 00:57:57 +02:00
benpicco
b00810c0e5
Merge pull request #18266 from gschorcht/cpu/esp32/variant_indpependent_syscalls
cpu/esp32:  ESP32x SoC variant independent syscalls
2022-06-29 00:57:23 +02:00
benpicco
3b3c6d34b3
Merge pull request #18273 from gschorcht/cpu/esp32/periph_hal_esp32_cpuid
cpu/esp32: use ESP-IDF function esp_efuse_mac for CPU ID
2022-06-29 00:40:02 +02:00
Marian Buschsieweke
973b6f69bf
sys/net/netopt: change NETOPT_STATS semantics
Instead of retrieving a pointer with NETOPT_STATS, retrieve the current
data. This avoids data corruptions when reading from one thread (e.g.
the thread running the shell (ifconfig command)) while another thread
is updating it (e.g. the netif thread).

The issue affects all boards, as users typically expect the count of
TX packets and the number of TX bytes to refer to the same state. For
16 bit and 8 bit platforms even a single netstat entry can read back
corrupted.

This fixes the issue by just copying the whole netstat_t struct over
without requiring explicit locking on the user side. A multi-threaded
network stack still needs to synchronize the thread responding to
netopt_get with the thread writing to the netstat_t structure, but that
is an implementation detail no relevant to the user of the API.
2022-06-28 16:57:43 +02:00
benpicco
1b2360e6da
Merge pull request #18261 from gschorcht/cpu/esp32/use_esp_idf_interrupt_handling
cpu/esp32: use ESP-IDF interrupt handling API
2022-06-28 16:37:11 +02:00
Gunar Schorcht
9065dcff14 cpu/esp32: port periph/cpu_id to ESP-IDF read_mac 2022-06-28 16:09:03 +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
benpicco
5bb12f3e57
Merge pull request #18264 from jia200x/pr/submac_use_ieee802154_retrans_config
ieee802154: add default max frame retransmissions config
2022-06-28 16:00:51 +02:00
Marian Buschsieweke
1d2547558f
Merge pull request #18265 from maribu/cpu/atmega_common/atmega_gpio
cpu/atmega_common: Fix atmega_port_addr()
2022-06-28 09:11:59 +02:00
Gunar Schorcht
4be0abf41a cpu/esp32: rename CPU_INUM_RTC to CPU_INUM_RTT 2022-06-28 07:30:59 +02:00
Gunar Schorcht
6bd6afbd22 cpu/esp32: use ESP-IDF for interrupt handling 2022-06-28 07:30:59 +02:00
Marian Buschsieweke
b72cafb169
cpu/atmega_common: Fix atmega_port_addr()
In 04ab5a74f3 a bug was introduced in
the calculation of the GPIO port address by refactoring code. This
fixes the issue by extracting the GPIO port first from the pin.
2022-06-27 22:15:52 +02:00
Marian Buschsieweke
c4233e60b2
tests/slip: update Makefile.ci 2022-06-27 17:07:21 +02:00
krzysztof-cabaj
056ffbf42d boards/nucleo-f303ze: add cpy2remed flashing commands 2022-06-27 09:56:36 -04:00