1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

48904 Commits

Author SHA1 Message Date
Mikolai Gütschow
31e2d2ff32
guides/build-system: document more targets
Co-authored-by: crasbe <crasbe@gmail.com>
2025-12-03 09:52:44 +01:00
crasbe
5196bac642
Merge pull request #21899 from LeonardHerbst/origin/event_queue_guide
doc/guides/advanced_tutorials: added event queue guide
2025-11-28 12:43:35 +00:00
LeonardHerbst
60b9f49a24 doc/guides/advanced_tutorials: added event queue guide 2025-11-28 13:38:16 +01:00
Marian Buschsieweke
6b536c6215
Merge pull request #21891 from maribu/cpu/sam0_common/periph_i2c/unstuck-for-real
cpu/sam0_common/periph_i2c: reliably unstuck bus
2025-11-27 13:37:59 +00:00
Marian Buschsieweke
0967c6b56f
cpu/sam0_common/periph_i2c: reliably unstuck bus
On a setup I have on my desk I can reliably get the I2C bus stuck. But
the current unstuck logic will not get it unstuck. Adding a full reset
of the SERCOM does fix the issue, though.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-27 14:01:16 +01:00
Ann🐸
4f7b172c0f
Merge pull request #21898 from maribu/tests/-sys/spdx
tests/{unittests,riotboot*,rust*,turo*}: use SPDX copyright tags
2025-11-27 11:46:17 +00:00
Marian Buschsieweke
6b6050a411
Merge pull request #21905 from maribu/drivers/sx126x/fix-hardware-detection
drivers/sx126x: improve hardware detection
2025-11-26 19:20:49 +00:00
Ann🐸
ccb5b8c65e
Merge pull request #21917 from mguetschow/make-remove-bash-dep
makefiles/utils/test: remove explicit dependency on bash
2025-11-26 14:56:40 +00:00
crasbe
1e80bd4048
Merge pull request #21916 from mguetschow/guide-docker-image
doc/guides: document DOCKER_IMAGE environment variable
2025-11-26 14:41:57 +00:00
Mikolai Gütschow
2fd86cbe07
makefiles/utils/test: rename python to more common python3 2025-11-26 13:59:14 +01:00
Mikolai Gütschow
738a02ed15
makefiles/utils/test: remove explicit dependency on bash 2025-11-26 13:58:32 +01:00
Mikolai Gütschow
ae51b869df
doc/guides: document DOCKER_IMAGE environment variable 2025-11-26 13:41:17 +01:00
Marian Buschsieweke
ed50187b34
Merge pull request #21915 from maribu/cpu/native/libucontext/fix-lockup
cpu/native: fix lockup on libucontext
2025-11-26 11:56:44 +00:00
Marian Buschsieweke
87af1a4b58
cpu/native: fix lockup on libucontext
The `setcontext()` implementation of glibc does restore the signal
mask to the target thread during the switch, libucontext [does not][1]

[1]: https://man.archlinux.org/man/libucontext.3.en#CAVEATS

Instead, we just manually enable signals again just before the call
to `setcontext()`.

With this, tests like `tests/core/mutex_canel` or `tests/core/irq` now
pass on `native64` when using libucontext.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-26 12:43:09 +01:00
Marian Buschsieweke
fba614b5ae
drivers/sx126x: improve hardware detection
- split out the detection logic into a static helper function
- replace a forgotten debug `printf()` with `DEBUG()`
- add a `LOG_ERROR()` to when no device is detect to ease diagnosis of
  a failing SPI bus / incorrect wiring / broken chip
- use a bullet-proof test:
    - First set the modulation type to LoRa
    - Then get the modulation type and expect it to be LoRa

Even if the reset of the devices fails (e.g. because the reset signal
is not connected) and the modulation would be different from LoRa, this
now should reliably detect the chip.
2025-11-25 23:43:47 +01:00
Teufelchen
2aafabd481
Merge pull request #21914 from benpicco/usbus_cdc_acm_flush-disco
sys/usb/cdc_acm: don't generate flush event when disconnected
2025-11-25 07:33:35 +00:00
Marian Buschsieweke
663f52c40c
Merge pull request #21913 from benpicco/suit_worker_try_prepare-set_size
sys/suit: write  size in suit_worker_try_prepare()
2025-11-25 06:16:44 +00:00
Benjamin Valentin
8aa816a9e3 sys/suit: always write size in suit_worker_try_prepare() 2025-11-24 19:47:19 +01:00
Marian Buschsieweke
ac7dccf117
Merge pull request #21912 from mguetschow/native-fputs-fwrite
cpu/native: implement fputs and fwrite
2025-11-24 18:37:38 +00:00
Benjamin Valentin
827dc31ef2 sys/usb/cdc_acm: don't generate flush event when disconnected 2025-11-24 19:21:23 +01:00
Mikolai Gütschow
bb192ee2c6
cpu/native: implement fputc, too 2025-11-24 16:49:16 +01:00
Mikolai Gütschow
f13f2889d7
cpu/native: implement fputs and fwrite 2025-11-24 16:28:57 +01:00
Marian Buschsieweke
19cccbb850
Merge pull request #21911 from fabian18/pr/sx126x_fix_dio3
drivers/sx126x: fix compilation for sx126x_dio3
2025-11-24 15:12:12 +00:00
Fabian Hüßler
01b2c2fbff drivers/sx126x: fix compilation for sx126x_dio3 2025-11-24 15:58:03 +01:00
Marian Buschsieweke
1a1e104d54
Merge pull request #21909 from maribu/spdx/fix/or-later
tests: fix SPDX license tags
2025-11-23 22:10:35 +00:00
crasbe
ba6c53e93b
Merge pull request #21903 from maribu/core/spdx
core: use SPDX copyright tags
2025-11-23 21:24:10 +00:00
Marian Buschsieweke
bd43254702
core: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-23 21:07:35 +01:00
Marian Buschsieweke
d707a05058
tests: fix SPDX license tags
During the conversion to SPDX tags a few files that actually should have
been tagged `LGPL-2.1-or-later` got tagged `LGPL-2.1-only`.

This fixes the labels to match the actual file license.
2025-11-23 21:02:37 +01:00
Marian Buschsieweke
b8c553c77d
Merge pull request #21902 from maribu/tests/sys/spdx
tests/sys: use SPDX copyright tags
2025-11-22 07:53:01 +00:00
Marian Buschsieweke
f8029e8891
tests/sys: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-22 08:48:27 +01:00
Marian Buschsieweke
2c815f837d
Merge pull request #21895 from maribu/core/thread_flags_group/fix
core/thread_flags_group: use portable implementation
2025-11-21 16:33:38 +00:00
Marian Buschsieweke
f396456423
core/thread_flags_group: use portable implementation
The previous implementation relied on `thread_flag_set()` to defer the
context switch when called with IRQs disabled until `irq_restore()` is
called. This however can only be the case when `thread_yield_higher`
triggers an IRQ and performs the context switch within the ISR. This
allowed the previous implementation to continue calling
`thread_flag_set()` for the remaining group members.

This however is an implementation detail that is not part of the API
contract. Platforms that do not have a service request IRQ may have to
use other means for context switching that do not get deferred until
an `irq_restore()` is called. In that case, the first call to
`thread_flags_set()` even with IRQs disabled may directly trigger a
context switch to the unblocked thread, even if other group members
would also be unblocked and have a higher priority.

This changes the implementation to manually set the flags and update
the thread status without yielding and keep track whether any thread
has been awoken. Only once the states of all threads have been updated,
the adapted implementation will now call `thread_yield()` (unless no
thread was awoken).
2025-11-21 15:21:25 +01:00
Marian Buschsieweke
50a1d28b47
core/thread_flags: change internal API
All uses of thread_flags_wake() also had to set the flags anyway, so
we can just combine those operations into a new
thread_flags_set_internal() and update the users to use that instead.
2025-11-21 15:21:22 +01:00
benpicco
47ecbc14a2
Merge pull request #21904 from Stopkaa/drivers/mrf24j40
drivers/mrf24j40: replace && with || in TX power validation
2025-11-21 13:23:42 +00:00
Stepan Konoplev
27ceb0eb8c drivers/mrf24j40: replace && with || in TX power validation 2025-11-21 12:15:37 +01:00
Marian Buschsieweke
05f0217306
tests/{riotboot*,rust*,turo*}: use SPDX copyright tags 2025-11-21 07:31:35 +01:00
Marian Buschsieweke
f799f7465a
tests/unittests: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: Ann🐸 <git@annsann.eu>
2025-11-21 07:31:23 +01:00
Marian Buschsieweke
42283c4b9d
Merge pull request #21901 from maribu/docker/don-t-leave-1-dirs
build-system: do not create empty folders named `1`
2025-11-20 21:02:14 +00:00
Marian Buschsieweke
193aa54edf
build-system: do not create empty folders named 1
Running `BUILD_IN_DOCKER=1` in an application folder outside of RIOT
created empty `1` folders by adding

  -v '<path/to/external/app>/1:/data/riotbuild/0:delegated' -e 'BUILD_IN_DOCKER=/data/riotbuild/0'

to the docker command line.

This changes the invocation to add just `-e 'BUILD_IN_DOCKER=0'` instead.
2025-11-20 21:07:08 +01:00
Marian Buschsieweke
a23948c23c
Merge pull request #21897 from maribu/tests/f_p/spdx
tests/[f-p]*/spdx: add SPDX tag
2025-11-19 15:07:47 +00:00
Marian Buschsieweke
af266cefba
tests/[f-p]*/spdx: add SPDX tag
Co-authored-by: Ann🐸 <git@annsann.eu>
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-19 14:04:19 +01:00
benpicco
250758c67c
Merge pull request #21883 from maribu/core/lib/atomics
core/lib/atomic_c11: Add __atomic_test_and_set()
2025-11-19 12:31:35 +00:00
Marian Buschsieweke
0800547502
Merge pull request #21896 from maribu/tests/c_d/spdx
tests/{core,cpu,drivers}: use SPDX copyright tags
2025-11-19 10:16:03 +00:00
Marian Buschsieweke
b1b942f09b
tests/{core,cpu,drivers}: use SPDX copyright tags 2025-11-19 11:12:02 +01:00
crasbe
696ea4d5e4
Merge pull request #21893 from maribu/tests/bxxx/spdx
tests/b*: use SPDX copyright tags
2025-11-18 14:12:24 +00:00
Marian Buschsieweke
a8298ac54d
tests/b*: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-18 12:39:05 +01:00
crasbe
9c578c845e
Merge pull request #21835 from crasbe/pr/esp32_common_module
boards: migrate ESP32 based boards to common board module system
2025-11-18 11:33:21 +00:00
crasbe
9d3cfc2aca boards: migrate ESP32 based boards to common board module system 2025-11-18 12:21:52 +01:00
Marian Buschsieweke
a32e108f2e
core/lib/atomic_c11: Fix compatibility with GCC
GCC requires symbols to first be declared before they can be renamed.
So we move the `#pragma redefine_extname` just to the bottom of the
compilation unit.

Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
2025-11-18 10:21:23 +01:00
crasbe
bcd09d39f7
Merge pull request #21890 from benpicco/usbus/cdc/acm-fix_garbage
sys/usb/cdc_acm: fix garbage input when disconnected
2025-11-18 01:06:35 +00:00