chrysn
48f156f501
Merge pull request #20833 from chrysn-pull-requests/leds-provided-on-demand
...
drivers/led: Allow LEDn_ON to be disabled by other modules
2024-08-26 09:45:38 +00:00
chrysn
739e2697d6
drivers/leds: Make initialization conditional on presence, not pin
...
The LEDx_PIN may still be defined (eg. on the particle-mesh family
because it is used to configure the PWM pins); the IS_PRESENT macro
performs the stricter check ov testing for an _ON function.
2024-08-26 11:12:51 +02:00
chrysn
7ea574fd20
boards/particle-xenon: Don't provide LED[012] if they are used by SAUL
...
Otherwise they show as provided but do not have any effect.
2024-08-26 11:12:51 +02:00
mguetschow
d7669fa4ce
Merge pull request #20831 from chrysn-pull-requests/ek-lm4f120x-led-rust-const-avoidance
...
boards/ek-lm4f120x: Change internal LED macro for C2Rust compatibility
2024-08-26 09:11:27 +00:00
chrysn
b802a19059
rust: Remove ek-lm4f120x board from blacklist
2024-08-23 13:48:44 +02:00
chrysn
ffcd646217
boards/ek-lm4f120x: Change internal LED macro for C2Rust compatibility
...
C preprocessor defines in non-function form are assumed by C2Rust to be
constant if they are an expression and not a statement; the LED_PORT was
the only place in the code where that was wrong, and led to compiler
errors due to the value not being constant.
Altering the internal macro to use function form sidesteps that issue.
The generally preferred alternative of using a `const` is unavailable in
this case because the dereferencing operator is already part of the
vendor header file cpu/stellaris_common/include/vendor/cortex-m4-def.h.
The changed macro is documented as required by doccheck. The doccheck
rule that grandfathered in the LED_PORT macro as allowed undocumented is
not removed because it is also used in other board.h files.
2024-08-23 13:48:44 +02:00
chrysn
0e7636a463
Merge pull request #20829 from chrysn-pull-requests/riot-wrappers-0.9
...
Rust: Update to riot-wrappers 0.9
2024-08-23 06:53:20 +00:00
chrysn
2bb7888a0b
examples/rust-gcoap: Update Makefile.ci
...
Some increase in binary size is expected due to one bug fix around the
VFS access where a zero-cost version would require threading
non-idiomatic nul-terminated strings through too many abstraction levels
to be practical.
2024-08-23 08:20:14 +02:00
chrysn
9041fcbb97
Merge pull request #20828 from chrysn-pull-requests/cargo-customization
...
Rust: Add `make cargo-command` and refactoring around it
2024-08-22 20:08:20 +00:00
chrysn
d67a448511
examples/rust-gcoap: Enable access to all file systems
...
This was previously limited to constfs due to [8], but now that that is
fixed, it can show its full potential of enumerating both directories
and mount points.
[8]: https://gitlab.com/etonomy/riot-wrappers/-/issues/8
2024-08-22 17:52:07 +02:00
chrysn
ea40036529
rust: Update all locked versions
...
This pulls in several updates for which there is no urgent need, but
also no good reason *not* to do them (especially as they may contain bug
fixes, even critical ones).
2024-08-22 17:49:39 +02:00
chrysn
2ef929369f
rust: Update locked riot-wrappers and riot-example-modules versions
2024-08-22 17:49:25 +02:00
chrysn
c0288f7d40
rust: Update to riot-wrappers 0.9
2024-08-22 17:33:40 +02:00
chrysn
4beff4e9d4
makefiles: Align cargo-info output with what happens in the build system
...
This simplifies the explanation of what might need adjustments depending
on which cargo command is invoked.
2024-08-22 15:16:41 +02:00
chrysn
a5c7705e1f
makefiles/doc: Clarify that CARGO_OPTIONS is only used for cargo build
...
The options passed to cargo are not universal, and thus can not apply to
all commands as was previously documented.
2024-08-22 15:16:41 +02:00
chrysn
d260ec88a6
makefiles: Add "cargo-command" target for executing cargo
...
Examples of executed commands are `cargo check`, `cargo fix` or `cargo
doc`.
2024-08-22 15:16:41 +02:00
chrysn
184ffc89ab
makefiles: Align cargo build command's setup with upcoming cargo-command
2024-08-21 21:20:46 +02:00
chrysn
8d30b00dd1
makefiles: Split Rust related checks out from building target
2024-08-21 20:40:08 +02:00
mguetschow
fa4f5010f7
Merge pull request #20827 from krzysztof-cabaj/nucleo-g071rb-MCU-table
...
boards/nucleo-g071rb: add MCU table to doc page
2024-08-21 16:07:46 +00:00
krzysztof-cabaj
0ea05046f9
boards/nucleo-g071rb: add MCU table to doc page
2024-08-21 17:40:15 +02:00
Teufelchen
c2efa3ef25
Merge pull request #20825 from krzysztof-cabaj/nucleo-g070rb-MCU-table
...
boards/nucleo-g070rb: add MCU table to doc page
2024-08-21 09:56:06 +00:00
Marian Buschsieweke
2ad132566e
Merge pull request #20826 from chrysn-pull-requests/remove-ztimer-now64
...
sys/ztimer: Remove the deprecated ztimer_now64
2024-08-21 04:08:34 +00:00
chrysn
a26366371d
sys/ztimer: Remove the deprecated ztimer_now64
...
This has been scheduled for removal after 2022.10, and its replacement
ztimer64_now has long been available.
2024-08-20 20:52:37 +02:00
krzysztof-cabaj
f24254620c
boards/nucleo-g070rb: add MCU table to doc page
2024-08-20 20:48:19 +02:00
benpicco
ac3afa0980
Merge pull request #20823 from JKRhb/fix-link-formatting
...
drivers/sx127x: fix link formatting in documentation
2024-08-20 13:15:59 +00:00
Jan Romann
947a5043c3
drivers/sx127x: fix link formatting in documentation
2024-08-20 14:19:27 +02:00
benpicco
0791a34282
Merge pull request #20822 from krzysztof-cabaj/nucleo-g070rb-g071rb-pinouts
...
boards/nucleo-g070rb & g071rb: add pinouts to documentation
2024-08-19 14:21:07 +00:00
krzysztof-cabaj
9da68b0b61
boards/nucleo-g071rb: add pinout to documentation page
2024-08-19 14:39:55 +02:00
krzysztof-cabaj
8f3ca72681
boards/nucleo-g070rb: add pinout to documentation page
2024-08-19 14:12:35 +02:00
Marian Buschsieweke
6a9154cdc5
Merge pull request #20821 from chrysn-pull-requests/update-examples-preparing-riot-wrappers-0-9
...
examples/rust: Update CoAP example modules
2024-08-19 11:51:56 +00:00
chrysn
ccd93b4617
examples/rust: Update CoAP example modules
...
This updates the use of two deprecated items.
2024-08-19 11:53:50 +02:00
Marian Buschsieweke
897fa6ba1a
Merge pull request #20818 from mcr/native-timer-doc
...
doc: note that timer_settime() comes from librt on some systems
2024-08-19 09:46:02 +00:00
Michael Richardson
7140aef74e
doc: note that timer_settime() comes from librt on some systems
2024-08-18 16:02:15 -04:00
krzysztof-cabaj
b5ac84d689
boards/nucleo-g070rb & g071rb: add pinout file
2024-08-18 13:03:30 +02:00
chrysn
d5bd9d7812
Merge pull request #20816 from maribu/cpu/native/periph_timer/linkflags
...
cpu/native/periph_timer: add missing -lrt to linker flags
2024-08-17 14:57:26 +00:00
Marian Buschsieweke
29a00beaf1
cpu/native/periph_timer: add missing -lrt to linker flags
...
This fixes https://github.com/RIOT-OS/RIOT/pull/20009#issuecomment-2294803168
2024-08-17 13:52:57 +02:00
benpicco
e8abea2046
Merge pull request #20814 from krzysztof-cabaj/nucleo-f439zi-ADC
...
boards/nucleo-f439zi: add ADC support
2024-08-16 12:30:36 +00:00
benpicco
2565fe7456
Merge pull request #20813 from slegouix/master
...
pkg/nanocbor - upgrade to last version
2024-08-16 12:15:07 +00:00
krzysztof-cabaj
03c700f1d6
boards/nucleo-f439zi: add full ADC config and doxygen doc
2024-08-16 13:04:15 +02:00
SamuelLegouix
febf6f22c1
pkg/nanocbor - upgrade to last version
2024-08-16 12:08:32 +02:00
krzysztof-cabaj
2d52ebd136
cpu/stm32/f4: add ADC support for f439zi
2024-08-16 10:03:33 +02:00
krzysztof-cabaj
7f97c2143e
boards/nucleo-f439zi: add initial ADC support
2024-08-16 10:00:23 +02:00
benpicco
3d5582d563
Merge pull request #20811 from nmeum/pr/riscv_common-format-error-llvm
...
riscv_common: Use unsiged long format specifier for printing CSR values
2024-08-12 16:40:30 +00:00
Sören Tempel
e7325ec02a
riscv_common: Use unsiged long format specifier for printing CSR values
...
The read_csr macro returns the CSR value as a `unsigned long`. However,
the format specifier presently treats it as a `uint32_t`. This causes
a -Wformat error to be emitted by Clang 18:
cpu/riscv_common/irq_arch.c:149:49: error: format specifies type 'unsigned int'
but the argument has type 'unsigned long' [-Werror,-Wformat]
149 | printf(" mepc: 0x%" PRIx32 "\n", read_csr(mepc));
2024-08-12 15:09:00 +02:00
benpicco
5267300029
Merge pull request #20810 from krzysztof-cabaj/stm32l0538-disco-pinout
...
boards/stm32l0538-disco: addition of pinout to documentation page
2024-08-09 10:39:54 +00:00
krzysztof-cabaj
ba3878050a
boards/stm32l0538-disco: add pinout to documentation page
2024-08-09 12:01:57 +02:00
krzysztof-cabaj
2c112488cc
boards/stm32l0538-disco: add pinout file
2024-08-09 11:50:02 +02:00
Marian Buschsieweke
4c55f92b1b
Merge pull request #20805 from maribu/cpu/stm32/periph_gpio_ll_periph_gpio_ll_switch_dir
...
cpu/stm32: implement `periph_gpio_ll_switch_dir`
2024-08-08 20:34:52 +00:00
Marian Buschsieweke
8839ccbe50
cpu/stm32: implement periph_gpio_ll_switch_dir
...
This implements periph_gpio_ll_switch_dir for STM32 except for STM32F1,
which has a different register layout.
2024-08-08 22:17:35 +02:00
Marian Buschsieweke
af61cf40e3
tests/periph/gpio_ll: add delays to test_switch_dir()
...
In all other tests we added a delay after writing to the output buffer
of GPIO A before expected the input buffer of GPIO B (connected to A)
to reflect the change, but not in test_switch_dir().
This adds the delay here as well to make the test more robust in regard
to GPIO peripherals that react not as fast as the CPU can query them.
2024-08-08 16:22:36 +02:00