Commit Graph

10006 Commits

Author SHA1 Message Date
Felipe Balbi
297ff3d032 clocks: remove defmt messages
Whenever any of the defmt-timestamp-uptime* features is enabled, defmt
will insert code that reads the timestamp in order to embed it into
the format string. This means that we *must* have a functional time
driver by the time the very first defmt message is printed.

Because clocks.rs is the part of the code setting up clocks that may,
indeed, be required by the chosen clock driver, it cannot contain any
defmt messages, otherwise it will trigger a read to a function that
does not yet exist.

Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
2025-05-07 12:57:49 -07:00
Felipe Balbi
64ce271af5 clocks: split clock and reset operations
Some peripherals need to control clock without touching the reset.

Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
2025-05-07 10:39:25 -07:00
Felipe Balbi
70e2c05205 Rename rtc.rs to time_driver.rs
We will add another time driver for user selection.
2025-05-07 08:33:03 -07:00
Ulf Lilleengen
6034b17728 Merge pull request #4167 from JuliDi/embassy-sync-docs
Clarify docs for signal and watch
2025-05-05 07:31:50 +00:00
JuliDi
723ebfcb4f clarify docs for signal and watch 2025-05-04 16:31:26 +02:00
Dario Nieuwenhuis
9fee43f2bd Merge pull request #4164 from yutannihilation/patch-1
doc: Tweak the example `rust-toolchain.toml`
2025-05-04 11:20:52 +00:00
Hiroaki Yutani
a42fa0a67a Tweak 2025-05-04 09:54:37 +09:00
Hiroaki Yutani
0406b83c52 Tweak the example rust-toolchain.toml in doc 2025-05-04 09:39:35 +09:00
Dario Nieuwenhuis
93ff90db04 Merge pull request #4161 from nyurik/readme
chore: minor readme cleanup
2025-05-03 18:37:12 +00:00
Yuri Astrakhan
7f259aaff2 chore: minor readme cleanup
use simpler markdown linking, minor grammar cleanup
2025-05-02 21:57:27 -04:00
Dario Nieuwenhuis
7a97825427 Merge pull request #4160 from nyurik/probe-rs
chore: use `probe-rs` instead of `probe-run`
2025-05-02 23:18:47 +00:00
Yuri Astrakhan
e5c03e1e79 chore: use probe-rs instead of probe-run
I found a few remaining deprecated `probe-run` cases.
2025-05-02 17:56:32 -04:00
Dario Nieuwenhuis
716160e9ab Merge pull request #4154 from embassy-rs/update-metapac-491
Update stm32-metapac
2025-05-01 16:56:47 +00:00
Dario Nieuwenhuis
38fd357536 Update stm32-metapac 2025-05-01 18:38:37 +02:00
Dario Nieuwenhuis
03122737c1 Merge pull request #4153 from embassy-rs/remove-nrf-ble
Remove embassy_nrf::radio::ble.
2025-05-01 13:35:20 +00:00
Dario Nieuwenhuis
df84dfec7a Remove embassy_nrf::radio::ble.
Fixes #4144
2025-05-01 15:33:02 +02:00
Dario Nieuwenhuis
52e4c7c30c Merge pull request #4149 from embassy-rs/stm32-otg-fix-trdt
stm32/otg: calculate TRDT using AHB freq instead of kernel freq.
2025-04-30 17:08:58 +00:00
Dario Nieuwenhuis
0591d60a79 stm32/otg: calculate TRDT using AHB freq instead of kernel freq. 2025-04-30 18:11:20 +02:00
Dario Nieuwenhuis
bd8021fe99 Merge pull request #4148 from U007D/main
add 133MHz tick rate to support PR2040 @ 133MHz when `TIMERx`'s `SOUR…
2025-04-30 17:47:35 +02:00
Curly
34b6a518f8 add 133MHz tick rate to support PR2040 @ 133MHz when TIMERx's SOURCE is set to SYSCLK 2025-04-30 07:50:13 -07:00
Ulf Lilleengen
e68713e9af Merge pull request #4120 from Gerharddc/dfu-app
[embassy-usb-dfu] Add generic DFU marking interface
2025-04-30 12:17:43 +02:00
Ulf Lilleengen
5f0196cb29 Merge pull request #4113 from alexmoon/twim-ram-buffer
Make the nrf Twim RAM buffer a instance variable instead of stack allocated
2025-04-30 11:40:40 +02:00
Alex Moon
fb7504c293 Add docs 2025-04-29 11:07:58 -04:00
Dario Nieuwenhuis
1d2f0add77 Merge pull request #4137 from cschuhen/stm32-can-data-len
Stm32 can data len
2025-04-27 22:58:53 +00:00
Dario Nieuwenhuis
e5e2db0ddb Merge pull request #4139 from luker983/rp235x-trng-error-handling
RP2350 TRNG Error Handling
2025-04-27 22:56:02 +00:00
Luke Rindels
cdef573f52 Enable rp235x trng self-tests by default
Gracefully handle rp235x trng self-test errors and resets
2025-04-27 15:25:23 -07:00
Corey Schuhen
eaec6c8165 Make raw_data public. 2025-04-27 17:37:56 +10:00
Dario Nieuwenhuis
9ab6100577 Merge pull request #4135 from skoe/fix_set_ovsr_typo
Fix set_ovsr typo, adaption to latest stm32-data-generated
2025-04-26 20:30:20 +00:00
Dario Nieuwenhuis
f309887711 Merge pull request #4136 from ckrenslehner/docs/add-waker-docs
docs: extend the waker documentation
2025-04-26 20:29:58 +00:00
ckrenslehner
c2173591aa docs: extend the waker documentation 2025-04-26 20:11:25 +02:00
Thomas Giesel
8b123b4e0d Fix set_ovsr typo, ramp up to latest stm32-data-generated
This is an adaption to https://github.com/embassy-rs/stm32-data/pull/597
2025-04-26 19:10:59 +02:00
Dario Nieuwenhuis
572e788b2e Merge pull request #4132 from GreatKet/main
Dead-time computation in complementary PWM fixed
2025-04-25 12:51:45 +00:00
Dario Nieuwenhuis
8f66154353 Merge pull request #4130 from diondokter/less-chatty
Logging: Make some things less chatty
2025-04-25 12:50:44 +00:00
James Munns
52e8979d7c Merge pull request #4128 from marcemmers/pio-onewire-refactor
[embassy-rp] Rewrite PIO onewire implementation
2025-04-25 10:25:29 +00:00
Ekaterina Savelyeva
edc585a8ef Test for dead-time computation corrected 2025-04-25 13:36:38 +04:00
Ekaterina Savelyeva
d1555f4d5f Dead-time computation in complementary PWM fixed (missing DTG msbs added) 2025-04-25 13:05:48 +04:00
Dion Dokter
f5ab597a07 Logging: Make some things less chatty 2025-04-25 10:53:17 +02:00
Marc
5d8b0e0327 Some small improvements 2025-04-25 01:14:54 +02:00
Marc
cd27a8a06b Updated the pio onewire example 2025-04-25 01:14:47 +02:00
Marc
2a4b380cb7 Search can use the normal write/read instructions 2025-04-25 01:14:38 +02:00
Marc
29bcddaa10 Refactor Onewire PIO implementation 2025-04-25 01:14:13 +02:00
Dario Nieuwenhuis
a687fb20f6 Merge pull request #4127 from skoe/adjust-opamp-less-emums
Update opamp code to current stm32-metapac
2025-04-24 22:30:10 +00:00
Dario Nieuwenhuis
18eea73d19 stm32/adc: add h7rs support. 2025-04-25 00:12:02 +02:00
Thomas Giesel
b32ff0c8f7 Update opamp code to current stm32-metapac
Some trivial enums have been removed from the OpAmp API in stm32-metapac,
this commit updates the HAL accordingly.
2025-04-24 22:15:41 +02:00
Dario Nieuwenhuis
97c605f61a tests/stm32: stm32l0 is alive. 2025-04-24 20:37:36 +02:00
Dario Nieuwenhuis
8474e573fb Merge pull request #4123 from alexmoon/manual-with-timeout-impl
Manually implement the future for `with_timeout`
2025-04-23 20:06:28 +02:00
Alex Moon
0b8f43b714 Manually implement the future for with_timeout 2025-04-23 13:32:06 -04:00
Dario Nieuwenhuis
9907f5683b Merge pull request #4121 from sebgab/reset_spi_when_applying_config_stm32
Fix STM32H7 SpiDeviceWithConfig does not properly apply the config
2025-04-22 16:05:29 +02:00
Sebastian Gabrielli
d8631f96d9 Disable SPI before changing config, then re-enable SPI on STM32
Fixes #2259
2025-04-22 12:47:33 +02:00
Gerhard de Clercq
3c9661cebc [embassy-usb-dfu] Add generic DFU marking interface
This commit adds an interface that allows users to customise how the bootloader is informed that DFU mode is needed on the next boot.
2025-04-22 12:20:33 +02:00