1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

46920 Commits

Author SHA1 Message Date
Bas Stottelaar
9efc41dbf4 dist/tools/bmp: support newer firmware versions
Some commands have been renamed since version 1.9.0 and 1.10.0.

To still provide compatibility with older debuggers, allow one to
override the firmware version assumed. A dependency for packaging
was added for comparing version numbers.
2024-12-23 23:00:14 +01:00
Bas Stottelaar
96dbd33507 dist/tools/bmp: revisit probe detection
The tool would always exit if no probes are detected, even if `--port`
was provided. By making this assertion conditional, it becomes
possible to override the port in any case.

Use cases for this is running the BMP externally, and connecto to it
via ser2net, for example.
2024-12-23 23:00:14 +01:00
Bas Stottelaar
e55da6ad82 dist/tools/bmp: add logging
Print action to console for reset and flash action, similar to the
erase action.
2024-12-23 22:58:20 +01:00
Bas Stottelaar
c57fe9bd79 dist/tools/bmp: restructure to meet conventions
Per conventions:

- Put main code in a function.
- Move argument parsing to separate function to not pollute global
  scope. This does mean that all invocations now need `args` as an
  additional argument.
2024-12-23 22:58:20 +01:00
Bas Stottelaar
7c36145eea dist/tools/bmp: replace distutils with shutil
Python 3.12 removed the `distutils` package, which is only used for
checking if GDB is available on PATH.

The `shutil.which` method does the same, and is available since
Python 3.3.
2024-12-23 22:58:20 +01:00
Oleg Hahm
a8b4773321
Merge pull request #21101 from OlegHahm/pr/fix/lwip_posix_inet_dependency
sys: shell: posix_inet as dependency for LWIP
2024-12-22 10:21:52 +00:00
benpicco
4f939f66e6
Merge pull request #21102 from krzysztof-cabaj/nucleo-l073rz-MCU-table
boards/nucleo-l073rz: add MCU table to doc page
2024-12-21 20:42:57 +00:00
Oleg Hahm
d330040b0f sys: shell: posix_inet as dependency for LWIP
The LWIP netif shell commands make use of POSIX functions like
inet_pton(). Hence, the module needs to be a dependency.
2024-12-21 01:41:25 +01:00
krzysztof-cabaj
1297578e22 boards/nucleo-l073rz: add MCU table to doc page 2024-12-20 20:56:02 +01:00
benpicco
243ca3114b
Merge pull request #20843 from benpicco/string_writer
sys/string_utils: add string_writer helper
2024-12-20 16:36:09 +00:00
Benjamin Valentin
db6196e061 tests/pkg/relic: blacklist ATXmega boards 2024-12-20 17:16:51 +01:00
Marian Buschsieweke
4f55461e15
Merge pull request #21096 from benpicco/rtc_mktime-const
sys/rtc_utils: make parameter to `rtc_mktime()` const
2024-12-19 14:29:20 +00:00
Benjamin Valentin
ba0060d3a6 sys/rtc_utils: make parameter to rtc_mktime() const 2024-12-18 22:08:32 +01:00
benpicco
91d587f8fa
Merge pull request #21095 from benpicco/drivers/at24cxxx-fix_set
drivers/at24cxxx: fix uninitialized return value in `_set()`
2024-12-17 16:08:48 +00:00
Benjamin Valentin
7ae354f191 drivers/at24cxxx: fix uninitialized return value in _set() 2024-12-17 15:24:13 +01:00
Benjamin Valentin
46259fb27e cpu/atxmega: set HAS_FLASH_UTILS_ARCH 2024-12-17 13:59:37 +01:00
Benjamin Valentin
2bf4c715d8 unittests: add test for string_writer 2024-12-17 12:38:14 +01:00
Benjamin Valentin
309ff95f34 sys/string_utils: add string_writer helper 2024-12-17 12:38:14 +01:00
benpicco
679ac927b8
Merge pull request #21092 from maribu/sys/event/fix-race
sys/event: fix race in event_wait_multi()
2024-12-16 20:22:01 +00:00
Marian Buschsieweke
c5ff57c59c
sys/event: fix race in event_wait_multi()
We need to clear `event->next` while IRQs are still disabled to
avoid another thread from calling `event_cancel()` just in-between.
2024-12-16 20:11:38 +01:00
benpicco
a40852d4c8
Merge pull request #21091 from maribu/pkg/lwip/adapt-to-netdev_new_new_api
pkg/lwip: fix adaption to API change of netdev_new_api
2024-12-16 14:37:25 +00:00
Marian Buschsieweke
424eae0095
pkg/lwip: fix adaption to API change of netdev_new_api
Since https://github.com/RIOT-OS/RIOT/pull/21012 a netdev in the new API
can return > 0 directly in netdev_driver_t::send() to indicate the
driver is naturally synchronous and has already completed the
transmission.

The adaption of lwIP to that API change contained a bug: It handled the
case after the thread is already blocked waiting for the signal that
is never going to arrive. This is now fixed.
2024-12-16 15:11:25 +01:00
Martine Lenders
4044c854f2
Merge pull request #21090 from miri64/doxygen/fix/make-latex-and-clean
doxygen/Makefile: fix `make latex` and `make clean`
2024-12-16 13:21:34 +00:00
Martine Lenders
e8feb438cc
doxygen/Makefile: fix make latex and make clean 2024-12-16 14:06:12 +01:00
Martine Lenders
234b81bf8a
Merge pull request #21071 from miri64/doc/enh/coc
doc: Improvements around Code of Conduct
2024-12-16 12:54:32 +00:00
Martine Lenders
e96211f0c9
coc-faq.md: Enforce 80 column formatting.
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
2024-12-16 13:14:42 +01:00
Martine Lenders
544ae78f6f
coc-faq.md: update to current state
Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2024-12-16 13:10:40 +01:00
Dylan Laduranty
808827c325
Merge pull request #21043 from benpicco/cpu/sam0-flashpage/cachedis
cpu/sam0_common: flashpage: disable cache while writing
2024-12-15 10:57:10 +00:00
Marian Buschsieweke
4d44abcc0e
Merge pull request #21073 from benpicco/sys/chunked_ringbuffer-start_discard
sys/chunked_ringbuffer: discard stale chunk when starting a new one
2024-12-14 09:28:14 +00:00
Benjamin Valentin
532f018b3a tests/unittests: chunked_ringbuffer: add test for half-written chunk 2024-12-13 16:30:28 +01:00
benpicco
24dc0143f8
Merge pull request #21074 from derMihai/mir/fix_dose_poweroff
drivers/dose: fix poweroff
2024-12-13 15:29:35 +00:00
benpicco
775fd55ae6
Merge pull request #21082 from krzysztof-cabaj/pkg_lwip_compilation_error
pkg/lwip: fix unused parameter error, when DEVELHELP = 0
2024-12-13 15:29:15 +00:00
krzysztof-cabaj
72cb8355e0 pkg/lwip: fix unused parameter error - when DEVELHELP = 0 2024-12-13 14:35:34 +01:00
a4026b78b8
Merge pull request #21078 from waehlisch/community_note
README.md: add Section Collaboration
2024-12-13 09:24:16 +00:00
Marian Buschsieweke
a0327ae723
Merge pull request #21068 from IsikcanYilmaz/drivers/ws281x/esp32_rmt_symbols_at_init
drivers/ws281x: esp32 neopixel driver to set the rmt symbol high/low lengths at init instead of every write
2024-12-13 08:36:48 +00:00
Marian Buschsieweke
d394f62aaf
Merge pull request #21076 from maribu/sys/net/nanocoap/fix-invalid-conf-separate-response
sys/net/nanocoap: Fix sending bogus separate responses
2024-12-13 07:59:43 +00:00
Marian Buschsieweke
ab116ec71c
sys/net/nanocoap: Fix sending bogus separate responses
When module `nanocoap_server_separate` is not used, the functions to
send separate responses are still provided, just in a broken version:
They will send the separate replies from a different endpoint than the
request was received at (even on machines with only one IP address, as
also the source port is randomized).

This changes the behavior to only provide the functions for separate
response when the do work, so that others will detect an invalid
configuration at compile time rather than at run time.

The documentation is duly updated.
2024-12-13 08:40:43 +01:00
Matthias Waehlisch
54a23f8559 README.md: add Section Collaboration 2024-12-13 01:48:33 +01:00
Marian Buschsieweke
28753e3509
Merge pull request #21075 from maribu/sys/net/nanocoap/buffer-overflow-separate-response
sys/net/nanocoap: fix buffer overflow in separate response handling
2024-12-12 20:36:55 +00:00
Marian Buschsieweke
c7af4b25a6
sys/net/nanocoap: fix invalid RST messages
An RST message has no token, so don't reply with a token when sending
RST.

This also adds unit tests to ensure this this exact bug does not sneak
back in.
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
fa011a8a1a
tests/net/nanocoap_cli: allow specifying the token
This adds the client_token shell command that allows to specify the
CoAP Token. This is particularly useful to test extended length Tokens,
as enabled with module `nanocoap_token_ext`.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
6b1279348a
sys/fmt: add scn_buf_hex()
This adds a function to convert a hex string to a byte array.
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
7a738d0e0b
sys/net/nanocoap: fix buffer overflow in separate response handling
When RFC 8974 support (module `nanocoap_token_ext`) is in use, the
request token may be longer than the buffer in the separate response
context is large. This adds a check to not overflow the buffer.

Sadly, this is an API change: Preparing the separate response context
can actually fail, so we need to report this with a return value.

The example application has been adapted to only proceed if the separate
reply context could have been prepared, and rather directly emit a
reset message if the token exceeds the static buffer.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
5fe7a2e44b
cpu/avr8_common: fix C++ compatibility of unistd.h
C++ does not know about `restrict`, but both g++ and clang++ support
`__restrict`, as do `clang` and GCC [1].

Using `__restrict` instead of `restrict` is also what glibc does.

[1]: https://en.wikipedia.org/wiki/Restrict#Support_by_C++_compilers
2024-12-12 14:28:27 +01:00
benpicco
cbd18b34ff
Merge pull request #21077 from Dlrk/sx126x-add-ifndef
drivers/sx126x: add #ifndef for SX126X_PARAMS
2024-12-12 13:18:33 +00:00
Dirk
9fb41d941e
drivers/sx126x: add #ifndef for SX126X_PARAMS
To be able to use multiple sx126x connected to one mcu.
2024-12-12 13:08:04 +01:00
Benjamin Valentin
982a2c161a sys/chunked_ringbuffer: discard stale chunk when starting a new one 2024-12-12 11:18:13 +01:00
Mihai Renea
6e0219e410 drivers/dose: fix poweroff 2024-12-11 15:33:50 +01:00
Marian Buschsieweke
51cd8b9e23
Merge pull request #21072 from krzysztof-cabaj/cpu-stm32-eth
cpu/stm32/eth: fix and improve ETH defines
2024-12-11 11:03:00 +00:00
krzysztof-cabaj
bb982ad3b2 cpu/stm32/eth: improve defines concerning checksum 2024-12-10 17:49:03 +01:00