mguetschow
de1efc6772
Merge pull request #20344 from Teufelchen1/chore/fmt_test_3
...
tests: Add NULL pointer argument test for fmt_lpad/to_lower/str
2024-02-09 10:41:17 +00:00
Teufelchen1
dbcfa1bdc8
tests: Add NULL pointer argument test for fmt_lpad/to_lower/str
2024-02-09 11:03:05 +01:00
Marian Buschsieweke
2dbc80fe59
Merge pull request #20352 from Enoch247/add-limit-macro
...
macros/utils: add LIMIT() and ABS() macros
2024-02-09 06:06:48 +00:00
benpicco
942b798073
Merge pull request #20362 from Enoch247/use-ipv4-init-macro
...
treewide: make use of new IPv4 static init macro
2024-02-08 20:23:10 +00:00
Marian Buschsieweke
26946a721b
Merge pull request #20360 from maribu/stm32-adc-typo
...
cpu/stm32/periph_adc: fix register access
2024-02-08 16:31:46 +00:00
Joshua DeWeese
fa7a577728
tests/unittests: add test for ABS() macro
2024-02-08 10:56:11 -05:00
Joshua DeWeese
b1cb2435d8
tests/unittests: add unit test for LIMIT() macro
2024-02-08 10:56:00 -05:00
Joshua DeWeese
8e3bbca8b5
tests/unittests: add tests for MAX()/MIN() macros
2024-02-08 10:55:37 -05:00
Joshua DeWeese
c3a4beb200
treewide: make use of new IPv4 static init macro
...
This commit makes use of the newly added static initializer for IPv4
addresses.
2024-02-08 10:14:24 -05:00
Joshua DeWeese
45c1441e4d
macros/utils: add ABS() macro
...
This patch adds the classic ABS() macro to exist along side of the
MAX/MIN macros.
2024-02-08 09:52:22 -05:00
Joshua DeWeese
78a1a18683
macros/utils: add LIMIT() macro
...
This patch adds a macro that can be used to limit a value to a given
range.
2024-02-08 09:52:22 -05:00
Marian Buschsieweke
4ed287cec8
cpu/stm32/periph_adc: fix register access
...
The register access to SMPR1/SMPR2 was incorrect in three aspects:
1. For channels < 10, SMPR1 was cleared but SMPR2 should have been
cleared
2. The code was not thread-safe
3. An unneeded write was issued. (The compiler won't combine the
in-place bitwise operations into a single read-modify-write
sequence on `volatile` memory.)
Fixes https://github.com/RIOT-OS/RIOT/issues/20261
2024-02-08 14:51:25 +01:00
Kevin "Tristate Tom" Weiss
c0f233dd2f
Merge pull request #20350 from MrKevinWeiss/pr/releasenotes/202401
...
release-notes.txt: add 2024.01 release notes
2024-02-08 12:44:42 +00:00
MrKevinWeiss
8b1018aae4
release-notes.txt: add 2024.01 release notes
2024-02-08 12:05:14 +01:00
benpicco
c07eca7696
Merge pull request #20356 from maribu/boards/msp-fixup
...
boards/olimex-msp430-h2618: change UART config
2024-02-08 10:18:02 +00:00
Marian Buschsieweke
e0535fc1d0
boards/olimex-msp430-h2618: change UART config
...
Change UART configuration to match `olimex-msp430-h1611`. This allows
using the [olimex-msp430-arduino-uno][board] breakout board to be used
with the `olimex-msp430-h2618` as well.
[board]: https://github.com/RIOT-OS/RIOT-Open-Hardware/tree/main/olimex-msp430-arduino-uno
2024-02-08 06:11:52 +01:00
Marian Buschsieweke
cbd918daab
cpu/msp430/x1xx: fix typo in doc
2024-02-07 20:07:53 +01:00
Marian Buschsieweke
2271b21c85
boards/olimex-msp430-h1611: fix symbol rate in doc
...
The symbol rate has been reduced to 9,600 Bd, as the board otherwise
occasionally looses IRQs.
2024-02-07 20:06:13 +01:00
benpicco
82d9e79f21
Merge pull request #20354 from Enoch247/add-ipv4-init-macro
...
sys/net/ipv4: add IPV4_ADDR_INIT() macro
2024-02-07 19:01:54 +00:00
benpicco
e2e5c3a834
Merge pull request #20353 from benpicco/gnrc_icmpv6_echo-error
...
sys/shell/ping: print error when DNS resolve fails
2024-02-07 17:54:52 +00:00
Benjamin Valentin
23c8336485
tests/net/gcoap_fileserver: add atmega1284p to Makefile.ci
2024-02-07 18:44:36 +01:00
Joshua DeWeese
bcc0d01c08
sys/net/ipv4: add IPV4_ADDR_INIT() macro
...
This patch adds a macro to statically initialize an IPv4 address.
2024-02-07 10:08:16 -05:00
Benjamin Valentin
bfdda46055
sys/shell/ping: print error when DNS resolve fails
2024-02-07 16:02:04 +01:00
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