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

46510 Commits

Author SHA1 Message Date
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
Marian Buschsieweke
a6b459eff3
drivers/periph/gpio_ll: change gpio_ll_switch_dir API
It turns out that the feature to switch the GPIO direction quickly
is not only a way to emulate open drain / open source mode for less
sophisticated GPIO peripherals that do not natively support it.
It also enables tri-state output (push-pull high, push-pull low,
high impedance), which is useful e.g. for driven charlieplexed LEDs
quickly.

This changes the API by introducing a `gpio_ll_prepare_switch_dir()`
function that prepares the value used to identify which pins should
be switched to input or to output mode. This is useful for GPIO
peripherals in which the GPIO mode register does not allocate one bit
per pin (so that only the direction is given there), such as the one
for STM32. This allows an STM32 implementation in which preparing the
bitmask needed to modify the direction of pins is not trivial.
2024-08-08 16:22:36 +02:00
benpicco
a1efa07c07
Merge pull request #20808 from krzysztof-cabaj/stm32l476g-pinout
boards/stm32l476g-disco: add pinout to documentation page
2024-08-07 12:50:08 +00:00
krzysztof-cabaj
abc46d7538 boards/stm32l476g-disco: add pinout to documentation page 2024-08-07 11:06:09 +02:00
krzysztof-cabaj
705dc253cb boards/stm32l476g-disco: add pinout file 2024-08-07 10:54:50 +02:00
Marian Buschsieweke
3735cc196d
Merge pull request #20679 from maribu/cpu/msp430/periph_gpio_ll
cpu/msp430: Implement periph_gpio_ll & periph_gpio_ll_irq
2024-08-05 20:19:32 +00:00
benpicco
cf1bb15c86
Merge pull request #20807 from krzysztof-cabaj/stm32l476g-PWM
boards/stm32l476g-disco: add PWM support
2024-08-05 19:10:11 +00:00
krzysztof-cabaj
72f8a8f268 boards/stm32l476g-disco: add PWM config and doxygen doc 2024-08-05 17:48:20 +02:00
Marian Buschsieweke
22df6cc6e3
Merge pull request #20804 from krzysztof-cabaj/nucleo-l053r8-DOC
boards/nucleo-l053r8: MCU table addition to doc page
2024-08-05 14:09:53 +00:00
krzysztof-cabaj
b2ef0c67d7 boards/stm32l476g-disco: add initial PWM config 2024-08-05 16:07:04 +02:00
Marian Buschsieweke
c8b65141ff
Merge pull request #20806 from maribu/boards/weact-g030f6
boards/weact-g030f6: fix use with stdio_rtt
2024-08-05 13:12:25 +00:00
Marian Buschsieweke
5a02899457
boards/weact-g030f6: fix use with stdio_rtt
Running

    USEMODULE=stdio_rtt make BOARD=weact-g030f6 -C ... flash term

failed due the programmer not being specified by the time the serial
is configured:

    makefiles/tools/serial.inc.mk:44: "Warning: No RIOT_TERMINAL set,
    but using stdio_rtt: The default terminal is likely not to work."

This reorders the setup of the board to first configure the programmer
and then the serial, so that using stdio_rtt now works out of the box.
2024-08-04 10:28:41 +02:00
Marian Buschsieweke
fc907f9251
cpu/msp430/periph_gpio: resolve conflict with GPIO LL
In case both periph_gpio_irq and periph_gpio_ll_irq are used, the
periph_gpio_irq implementation now uses periph_gpio_ll_irq, so that
they can coexist.
2024-08-02 13:41:37 +02:00
Marian Buschsieweke
355f2335d5
cpu/msp430: implement gpio_ll_irq 2024-08-02 13:41:37 +02:00
Marian Buschsieweke
1a0da9a7af
cpu/msp430: fix warnings
clock.c: The MSP430 may need nop instructions after (and in some cases
         even before) touching the global interrupt enable bit in the
         status register. The assembler generates a warning when in
         doubt. Those nops should not be needed in our cases, but maybe
         it is better two waste flash for two instructions than having
         to live with the warning.

cpu.c: drop unneeded include
2024-08-02 13:41:37 +02:00
Marian Buschsieweke
0ce7b8dfde
cpu/msp430: add periph_gpio_ll 2024-08-02 13:41:37 +02:00
Marian Buschsieweke
5db461c28b
drivers/periph_gpio_ll: always use hardware features
GPIO LL headers might be included even when not using GPIO LL. Some
functions may be provided by the common header or the platform specific
one, depending on the features used. Hence, the header can only be
safely included if the correct set of GPIO LL hardware features is used.
2024-08-02 13:41:37 +02:00
Marian Buschsieweke
422042bd00
drivers/periph_gpio_ll_irq: make support for both edges optional
The assumption that every MCU has this feature turned out wrong. Hence,
add a feature to allow testing for support of edge triggered IRQs on
both flanks.
2024-08-02 13:41:36 +02:00
Marian Buschsieweke
340caa83af
Merge pull request #20639 from maribu/drivers/periph_gpio_ll/api-change
drivers/periph_gpio_ll: change API to access GPIO ports
2024-08-02 08:11:27 +00:00
Marian Buschsieweke
4a092862f8
cpu/stm32/periph_eth: adapt to GPIO LL API change 2024-08-02 09:55:25 +02:00
Marian Buschsieweke
84a4399135
tests/periph/gpio_ll: fix randomly failing test
A test intended to ensure that a configuration toggling the direction
of a GPIO two times restores the original configuration not only
compared the configuration at the two points in time, but also the
value of the input buffer. Since a floating input reads back random
values when not externally driven, the test was actually randomly
failing. Apparently I got lucky before consistently and this never
triggered until now.

This now clears the input value from both the configuration reported
before and after toggling the direction twice and should now indeed
succeed consistently.
2024-08-02 09:55:24 +02:00