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

45345 Commits

Author SHA1 Message Date
Marian Buschsieweke
4df530663b
Merge pull request #20348 from benpicco/cpp_new_delete-always
sys/cpp_new_delete: always enable the module when C++ is used
2024-02-07 10:55:09 +00:00
Benjamin Valentin
453a8be4f3 sys/cpp_new_delete: always enable the module when C++ is used 2024-02-07 11:40:23 +01:00
benpicco
cc6eb465df
Merge pull request #20346 from mguetschow/psa-crypto-ed25519-return
sys/psa_crypto: return proper error code for psa_verify_msg
2024-02-06 21:41:08 +00:00
benpicco
83f3c4a396
Merge pull request #20342 from fabian18/pr/fix_router_lifetime_and_ft_add_api
ipv6/nib: fix router lifetime handling in RIO and fix gnrc_ipv6_nib_ft_add() api
2024-02-06 19:38:12 +00:00
Fabian Hüßler
fef5c8c5d8 ipv6/nib: fix lifetime handling in RIO handling 2024-02-06 18:35:05 +01:00
Fabian Hüßler
c4ae9063e9 ipv6/nib: fix gnrc_ipv6_nib_ft_add API and catch overflovs 2024-02-06 18:35:05 +01:00
Mikolai Gütschow
d978a57020
sys/psa_crypto: return proper error code for psa_verify_msg 2024-02-06 17:55:40 +01:00
Martine Lenders
a16199f846
Merge pull request #20343 from fabian18/pr/fix_ipv6_nib_cancel_timers
ipv6/nib: cancel timers when NIB entry gets deleted
2024-02-06 16:24:11 +00:00
Marian Buschsieweke
80cdde4bee
Merge pull request #20345 from maribu/dist/tools/mspdebug
dist/tools/mspdebug: build from source
2024-02-06 15:47:47 +00:00
Marian Buschsieweke
aafc099a1c
dist/tools/mspdebug: build from source
This adds mspdebug as package, similar to EDBG, so that the
programmer/debugger is build from source.

This has the advantage that we can indeed provide patches of our own.
The first patch fixes a bug with the CPU detection of `mspdebug` in
combination with the Olimex MSP430-JTAG-TINY-V2. The second adds the
`--expect-id <CPU_NAME>` argument.

The RIOT integration is updated to directly make use of the
`--expect-id` parameter. No more spending time debugging why firmware
the firmware for the `olimex-msp430-h2618` doesn't run when flashed on
the `olimex-msp430h1611` hardware :D
2024-02-06 15:23:02 +01:00
Fabian Hüßler
2b8b828a53 ipv6/nib: move internal event timer API up 2024-02-06 10:30:59 +01:00
Fabian Hüßler
eb1a827e21 ipv6/nib: delete router timeout when router is deleted 2024-02-06 10:29:48 +01:00
Fabian Hüßler
f8a64e74c4 ipv6/nib: delete route timeout when forward table entry is deleted 2024-02-06 10:29:40 +01:00
Fabian Hüßler
de4142de37 ipv6/nib: delete prefix timeout when prefix list entry is deleted 2024-02-06 10:29:30 +01:00
benpicco
4d9e8a8dde
Merge pull request #20335 from fzi-haxel/pr/native64-board
native64: Separate board for 64-bit native
2024-02-05 22:58:02 +00:00
Frederik Haxel
d1f1f8a2c3 sys/psa_crypto: Use PRIuSIZE in debug messages 2024-02-05 22:02:27 +01:00
Frederik Haxel
0d89040ae3 CI: Add native64 to CI
- Test native64 like native in murdock
- Add native64 to "Platform: native" in github labeler
- Add "BUILDTEST_MCU_GROUP == x86_64" to `dist/tools/ci/build_and_test.sh`
2024-02-05 22:02:21 +01:00
Frederik Haxel
5ed0bafc92 examples, tests: Changes for the native64 board
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00
Frederik Haxel
0c2cfe99e6 native64: Add Linux/x86_64 board
Adds a separate board for native64 instead of the `NATIVE_64BIT` workaround.
The files in `boards/native64` are more or less dummy files and just include
the `boards/native` logic (similar to `openlabs-kw41z-mini-256kib`).
The main logic for native is in `makefiles/arch/native.inc.mk`, `cpu/native`
and `boards/native`.

The remaining changes concern the build system, and change native board checks
to native CPU checks to cover both boards.
2024-02-05 22:01:40 +01:00
benpicco
7bcad440bb
Merge pull request #20340 from benpicco/RIOT_VERSION_EXTRA
sys/shell: add RIOT_VERSION_EXTRA output
2024-02-05 16:27:53 +00:00
Benjamin Valentin
b729fe3237 sys/shell: add RIOT_VERSION_EXTRA output
This allows to define an extra string that will be output as part
of the version command.

e.g. an application may define

RIOT_VERSION_EXTRA += v1.33.7
RIOT_VERSION_EXTRA += flashed by $(shell whoami
2024-02-05 14:18:14 +01:00
benpicco
6deca8b87c
Merge pull request #20292 from maribu/drivers/periph/gpio_ll/switch_dir
drivers/periph_gpio_ll: Implement API to switch direction
2024-02-05 11:41:42 +00:00
Marian Buschsieweke
06a05370a2
cpu/sam0_common: Implement gpio_ll_switch_dir 2024-02-05 10:56:16 +01:00
Marian Buschsieweke
8aab69e93d
tests/periph/gpio_ll: Test gpio_ll_switch_dir 2024-02-05 10:56:16 +01:00
Marian Buschsieweke
c011764022
cpu/atmega_common: implement gpio_ll_switch_dir 2024-02-05 10:56:16 +01:00
Marian Buschsieweke
6fb369d4fc
drivers/periph/gpio_ll: Add API to switch direction
This adds two functions:

    void gpio_ll_switch_dir_output(gpio_port_t port, uword_t outputs);
    void gpio_ll_switch_dir_input(gpio_port_t port, uword_t inputs);

The first configures GPIO pins specified by a bitmask as output, the
second configures the specified pins as input.

The main use case is to allow bit-banging bidirectional protocols using
more basic GPIO peripherals that do not implement open drain mode, such
as found e.g. on MSP430, ATmega, or SAM0.

It is not intended to implement this feature on modern MCUs with
sophisticated GPIO peripherals.
2024-02-05 10:56:16 +01:00
Marian Buschsieweke
8bf61336a2
Merge pull request #20290 from maribu/drivers/periph/gpio_ll/features
drivers/periph_gpio_ll: Fix GPIO_DISCONNECT handling and add compile time feature checks
2024-02-05 07:30:54 +00:00
Marian Buschsieweke
f10a994a9e
cpu/gd32v/periph_gpio_ll: fix and clean up
Use analog mode for GPIO_DISCONNECT, as this is said to have the lowest
current leakage due to disabling the Schmitt trigger and correctly
detect this in `gpio_ll_query_conf()`.

Also drop the `schmitt_trigger_disabled` member in `gpio_conf_t`, as
the Schmitt trigger is only ever disabled in Analog mode anyway and
cannot be freely configured.
2024-02-05 08:21:52 +01:00
Marian Buschsieweke
1351c61c6a
cpu/efm32: expose pull up on GPIO_DISCONNECT
Allow enabling the pull on on `GPIO_DISCONNECT` and query that
correctly.
2024-02-05 08:21:51 +01:00
Marian Buschsieweke
6028097132
cpu/stm32/periph_gpio_ll: Fix and clean up
The separate Schmitt trigger bit in the configuration is dropped, as
the Schmitt trigger is only every disabled when in `GPIO_DISCONNECT`
mode. So no need to encode the same information twice.

The `gpio_state_t` is improved to be a bitmask that holds the
MODER register value and a flag indicating whether open-drain mode
should be enabled.

Finally, `GPIO_DISCONNECT` is implemented. This is done by placing the
GPIO in analog mode, which by disabling the Schmitt trigger reduces
power consumption.
2024-02-05 08:21:51 +01:00
benpicco
0eddf4afd1
Merge pull request #20337 from benpicco/boards/weact-g030f6
boards/weact-g030f6: add support for minimal break-out board
2024-02-05 03:52:39 +00:00
Benjamin Valentin
e20784833d boards/stm32g0316-disco: enable periph_rtc 2024-02-05 00:45:42 +01:00
Benjamin Valentin
0cdbde8fb8 boards/stm32g0316-disco: set TIMER_0_MAX_VALUE 2024-02-05 00:45:42 +01:00
Benjamin Valentin
85cfcafdf6 boards/weact-g030f6: add new board 2024-02-05 00:45:42 +01:00
benpicco
e83ab21783
Merge pull request #20336 from maribu/doc/doxygen/src/getting-started.md
doc/getting-started: point out where to run make
2024-02-04 21:32:36 +00:00
Benjamin Valentin
895a6f87ed cpu/stm32/rtc: add support for STM32G0 2024-02-04 19:44:56 +01:00
Marian Buschsieweke
8ea106c16e
build system: add tl;dr to error message
When running `make` in the root directory, it might be best to just
add as tl;dr section at the bottom.
2024-02-04 19:41:32 +01:00
Marian Buschsieweke
57ecb896ec
doc/getting-started: point out where to run make 2024-02-04 17:54:02 +01:00
Benjamin Valentin
fcd734e10e drivers/ethos: add STDIO_UART_RX_BUFSIZE compat define 2024-02-03 13:09:10 +01:00
benpicco
85dcc1bd3b
Merge pull request #19742 from benpicco/shell_cmd_udptty
shell/cmds: add udptty command
2024-02-02 16:28:26 +00:00
benpicco
68152c53a9
Merge pull request #20331 from maribu/boards/common/nrf52
boards/common/nrf52: add OpenOCD's RIOT awareness
2024-02-02 13:01:59 +00:00
Marian Buschsieweke
47280b3a9b
drivers/w5100: make use of spi_transfer_u16_be()
This also fixes a bug, as the free coded byte swap code was incorrect.
2024-02-02 13:05:02 +01:00
Marian Buschsieweke
87abafb13f
drivers/periph_spi: Add spi_transfer_u16_be()
This adds a helper function to exchange a 16 bit number that is to
be transferred in big endian order on the wire.
2024-02-02 13:05:02 +01:00
Benjamin Valentin
13deed1a83 shell/cmds: add udptty command 2024-02-02 12:55:25 +01:00
Marian Buschsieweke
8403f6b7cc
boards/common/nrf52: add OpenOCD's RIOT awareness
This enables RIOT awareness in OpenOCD, so that `info threads` actually
shows RIOT's threads.
2024-02-02 12:25:11 +01:00
benpicco
22dbbf4a07
Merge pull request #20319 from chrysn-pull-requests/rust-simplifications
makefiles/cargo: Remove CARGO_CHANNEL and other simplifications
2024-02-02 08:07:02 +00:00
Marian Buschsieweke
98f505654f
Merge pull request #20327 from leandrolanzieri/pr/example/wakaama_rename
examples/wakaama: rename to lwm2m
2024-02-02 06:11:21 +00:00
Marian Buschsieweke
3b3da09ec6
Merge pull request #20313 from maribu/sys/byteorder/cleanup-implementation
sys/byteorder: clean up implementation
2024-02-02 05:38:33 +00:00
Marian Buschsieweke
8c588d919c
Merge pull request #20328 from benpicco/event/periodic_callback-getter
event_periodic_callback: add getter for interval & count
2024-02-01 18:27:41 +00:00
Marian Buschsieweke
ebfaa362f5
pkg/tinydtls: fix conflict with endian.h 2024-02-01 18:24:40 +01:00