1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

48744 Commits

Author SHA1 Message Date
crasbe
f366153e0b boards: don't show pin conflict warnings for info and generate targets 2025-11-06 16:46:55 +01:00
benpicco
a8f0171bc1
Merge pull request #21853 from crasbe/pr/tests_zep_random_port
tests/net: use random, free port for socket_zep&gnrc_netif_ieeee802154
2025-11-06 12:37:36 +00:00
crasbe
8e3a6ee11a tests/net: use random, free port for gnrc_netif_ieee802154 2025-11-06 13:03:49 +01:00
crasbe
6a89fe55cb tests/net: use random, free port for socket_zep 2025-11-06 12:33:29 +01:00
crasbe
02515a1802
Merge pull request #21849 from benpicco/drivers/at86rf215-rpc-fix
drivers/at86rf215: re-enable RPC when TX is done
2025-11-05 18:47:25 +00:00
crasbe
91daf5621c
Merge pull request #21848 from leandrolanzieri/pr/fix_clist_doc
core/lib/clist: fix example of clist_foreach usage in docs
2025-11-05 18:34:22 +00:00
Benjamin Valentin
afcc7864c6 drivers/at86rf215: re-enable RPC when TX is done 2025-11-05 18:33:28 +01:00
Leandro Lanzieri
79a54c5741 core/lib/clist: fix example of clist_foreach usage
Also fix some doxygen rendering issues.
2025-11-05 16:32:37 +01:00
crasbe
2a21229a82
Merge pull request #21847 from LeonardHerbst/origin/motor_driver
drivers/motor_driver: fix accidental braking
2025-11-05 14:08:08 +00:00
LeonardHerbst
1a4491e7da drivers/motor_driver: fix accidental braking 2025-11-05 14:27:01 +01:00
Marian Buschsieweke
5d26414ecf
Merge pull request #21839 from maribu/pkg/cmake/fix-compilation-on-cmake-4.1.2
pkg: Add `-DCMAKE_POLICY_VERSION_MINIMUM=3.5` to cmake flags
2025-11-03 15:54:34 +00:00
crasbe
b8f96e7212
Merge pull request #21671 from maribu/dist/tools/vera++/no-length-limit-in-comments
dist/tools/vera++: allow comments to be overlong
2025-11-03 11:53:49 +00:00
crasbe
df58de4ba2
Merge pull request #20430 from cogip/native_i2c_mock
cpu/native: introduce periph_i2c_mock
2025-11-03 11:33:59 +00:00
Gilles DOFFE
4de38f2de4 drivers/at24mac: add missing stdbool.h include
Fix compilation error on native platform where bool type is used but
stdbool.h is not explicitly included.

On many platforms, stdbool.h is indirectly included via CPU headers,
but on native this is not the case.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-11-03 10:10:40 +01:00
Marian Buschsieweke
5305a12aa9
pkg: Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to cmake flags
This disable policy enforcement of newer cmake 4.1.2 on older cmake
projects. The flags can be removed once the upstream projects are
compatible with newer versions of cmake.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-03 10:02:11 +01:00
crasbe
775d4362d2
Merge pull request #21841 from maribu/pkg/no-gpg-sign-no-matter-what
pkg: Always add mandatory GITAMFLAGS
2025-11-03 08:56:09 +00:00
mguetschow
8c1412d22b
Merge pull request #21821 from mguetschow/psa-ed25519-sizes
sys/psa_crypto: unify buffer size size handling for ed25519 backends
2025-11-03 08:46:18 +00:00
Mikolai Gütschow
36e09ccec9
sys/psa_crypto: unify buffer size size handling for ed25519 backends 2025-11-03 09:33:48 +01:00
Gilles DOFFE
75b178f638 tests/si1133: add missing stdbool.h include
Fix compilation error on native platform where bool type is used but
stdbool.h is not explicitly included.

On many platforms (ARM, AVR, etc.), stdbool.h is indirectly included
via CPU headers, but on native this is not the case.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-11-03 09:02:05 +01:00
Marian Buschsieweke
3b2ac0c1ca
pkg: Always add mandatory GITAMFLAGS
We really don't want a `make BOARD=some-board -C some/app` to ask for
a password to unlock a GPG key. That is more than confusing on a
desktop machine and a real pain on a headless device.
2025-11-02 23:36:38 +01:00
crasbe
05cac034eb
Merge pull request #21838 from benpicco/doc/managing-a-release-token
doc/guides/managing-a-release: add note on token permissions
2025-11-02 21:16:31 +00:00
Benjamin Valentin
bbcd5d4cd7 doc/guides/managing-a-release: add note on token permissions 2025-11-02 20:38:48 +01:00
crasbe
c699e2e20a
Merge pull request #20648 from maribu/doc/mediation
doc/CONTRIBUTION.md: document mediation process
2025.10-RC1 2026.01-devel
2025-11-01 14:45:31 +00:00
Marian Buschsieweke
b92fa919cc
doc/CONTRIBUTION.md: document mediation process
As agreed upon in the weekly coordination meeting we want to set up
a channel / tool / process to aid contributors to solve conflicts.

This is especially aimed to empower contributors to solve conflicts
with maintainers, as we were unsure that the existing code of conduct
violation mechanism is sufficient to address conflicts that do not
involve a CoC violation.

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2025-11-01 13:59:29 +01:00
crasbe
12b719a0bc
Merge pull request #21796 from Morigawa/pr/netdev_ieee802154_submac_fix_bytestx
drivers/netdev_ieee802154_submac: fix bytes_tx
2025-10-31 20:20:49 +00:00
morigawa
073d16508d pkg/openthread: change error code
Using OT_ERROR_FAILED let to unreachable code and following that a panic.
2025-10-31 20:41:56 +01:00
morigawa
0f2fbe1b57 drivers/netdev_ieee802154_submac: set bytes_tx correctly
bytes_tx should not be set to 0 at this point. It should be set to the
length of the package, if there is an error after transmission it will
be set to an error value in submac_tx_done. The value will be evaluated
after a TX_DONE Event, so the pending state 0 that is returned from the
_send function while async sending, is not relevant for bytes_tx.
2025-10-31 20:41:56 +01:00
Marian Buschsieweke
20ff9dba35
Merge pull request #21836 from benpicco/cpu/sam0-eth/irq-init
cpu/sam0_eth: disable interrupts during init
2025-10-31 17:48:20 +00:00
Marian Buschsieweke
8fe02c5cb2
Merge pull request #21797 from crasbe/pr/stm32_ccmram
cpu/stm32: fix `_ccmram_length` name, make names consistent
2025-10-31 12:46:34 +00:00
Benjamin Valentin
477a00d43f cpu/sam0_eth: disable interrupts during init 2025-10-31 13:36:44 +01:00
benpicco
0995c466c6
Merge pull request #21786 from fabian18/pr/fix_nrf52_after_soft_ack
cpu/nrf52/radio/nrf802154: fix radio after soft ACK
2025-10-31 10:19:54 +00:00
Gilles DOFFE
ecc8bda62f makefiles: hide security warnings for info targets
Security warnings (telnet, stdio_udp, psa_crypto) were displayed even
for info-* targets, polluting the output and breaking tools that parse
make output (e.g., compile_and_test_for_board.py).

These warnings are only relevant when actually building/running code,
not when querying build system information.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
02786f1edc sys/auto_init: fix printf format for native
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
92579c1fa3 tests/pca9685: fix printf format for native
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
f8dc37dca0 drivers/sht2x: fix printf format for native
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
7e45997001 drivers: add kernel_defines.h for ARRAY_SIZE
Fix compilation errors on native boards caused by missing ARRAY_SIZE
macro definition. The macro is defined in container.h which is included
by kernel_defines.h.

On ARM/Cortex-M platforms, kernel_defines.h is indirectly included via
cpu/cortexm_common/include/irq_arch.h, making ARRAY_SIZE available.
On native platform, no CPU header includes kernel_defines.h, requiring
explicit inclusion.

Error: "implicit declaration of function 'ARRAY_SIZE'"

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
9e928e411b drivers: add modules.h for IS_USED macro
Fix compilation errors on native boards caused by missing modules.h
include in driver headers that use IS_USED() in preprocessor directives.

The IS_USED macro is defined in modules.h and must be included in any
header file that uses it in #if directives.

Error: "missing binary operator before token '('"

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
e1b2d5c9df tests/cryptoauthlib: blacklist native boards
Native boards fail to link due to an upstream bug in cryptoauthlib's
test infrastructure. The file build/pkg/cryptoauthlib/test/cmd-processor.c
has incorrect conditional compilation logic:

    #if defined(_WIN32) || defined(__linux__) || defined(__APPLE__)
        int main(int argc, char* argv[]) { ... }
    #elif defined(RIOT_APPLICATION)
        int atca_run_cmd(char *command, size_t len) { ... }
    #endif

On native boards, __linux__ is defined, so the code compiles a main()
function instead of atca_run_cmd(). This conflicts with RIOT's main()
and causes linker errors:

    - multiple definition of 'main'
    - undefined reference to 'atca_run_cmd'

On ARM boards, none of these platform macros are defined, so the code
correctly falls through to the RIOT_APPLICATION branch and compiles
atca_run_cmd() instead.

The fix would require patching cryptoauthlib to check RIOT_APPLICATION
before checking platform macros, or reporting this upstream to Microchip.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
Gilles DOFFE
71a0dbcc70 pkg/cryptoauthlib: fix modules.h and printf format
- Add missing modules.h include for IS_USED macro in atca.h
- Fix printf format specifiers in psa_atca_se_driver.c: use %zu for size_t
  parameters instead of %d to prevent warnings on native platform

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
chrysn
e395e045a5 tests/periph/i2c: Demonstrate mock hooking 2025-10-30 23:51:07 +01:00
Gilles DOFFE
dab11d7a9c cpu/native: introduce periph_i2c_mock
This allows I2C emulation on native architecture in the same way than
periph_gpio_mock.

All I2C functions from this driver are set as weak to be easily
overridden in each application.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:07 +01:00
Gilles DOFFE
197cf51b93 cpu/native: fix GPIO bias flags for kernel >=5.5
Fix duplicate GPIO mode values on native platform when using Linux
kernel 5.5 or later. The kernel renamed GPIOHANDLE_REQUEST_PULL_* flags
to GPIOHANDLE_REQUEST_BIAS_PULL_* in version 5.5.

Without this fix, both GPIO_IN_PU and GPIO_OD_PU would have the same
fallback value (0xFF), causing compilation errors in switch statements.

Error: "duplicate case value"

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:07 +01:00
Fabian Hüßler
76391f8566 cpu/native/socket_zep: native overhead workaround 2025-10-30 22:08:22 +01:00
crasbe
1d57117f1e
Merge pull request #21831 from crasbe/pr/cc_comments
CODING_CONVENTIONS: Add more Info about Comment Styles
2025-10-30 19:15:45 +00:00
crasbe
a1ccbab35c CODING_CONVENTIONS: add more info about comment styles 2025-10-30 18:28:35 +01:00
crasbe
4b5548020d
Merge pull request #21833 from mguetschow/lwip-netdev-type-fix
pkg/lwip/netdev: fix return types in send()
2025-10-30 16:11:58 +00:00
crasbe
03862d1577
Merge pull request #21834 from mguetschow/lwip-doc-debug
pkg/lwip: document debug defines
2025-10-30 15:42:03 +00:00
Mikolai Gütschow
c3863686ae
pkg/lwip: document debug defines 2025-10-30 15:40:45 +01:00
Mikolai Gütschow
a045acbea8
pkg/lwip/netdev: fix return types in send() 2025-10-30 15:38:34 +01:00
Mikolai Gütschow
432b1b556a
pkg/lwip: improve debug output with tiny_strerror 2025-10-30 15:38:09 +01:00