11162 Commits

Author SHA1 Message Date
Dion Dokter
bee6230cb6 Add to changelog 2025-09-18 11:08:59 +02:00
Dion Dokter
b794997c56 Clippy fixes 2025-09-18 11:06:33 +02:00
Dion Dokter
6c801a0dba Add clone impl on shared i2c 2025-09-18 11:04:13 +02:00
Ulf Lilleengen
93b5f1ebe3
Merge pull request #4678 from ophilli/main
docs(cyw43): clarify Control::join() docs
2025-09-18 08:29:16 +00:00
Owen Phillips
0d568022be docs(cyw43): clarify Control::join() docs
Update doc comment to clarify that Control::join() can be used to join
networks using the provided options, not only open networks.
2025-09-17 20:23:24 -07:00
Ulf Lilleengen
c6371d7a9b
Merge pull request #4624 from paroga/usb_dfu_reset
embassy-usb-dfu: fix: do net reset in GetStatus request
2025-09-17 09:55:46 +00:00
Ulf Lilleengen
12cb85c54c
Merge branch 'main' into usb_dfu_reset 2025-09-17 11:52:36 +02:00
Ulf Lilleengen
90f6497959
Merge pull request #4216 from 1-rafael-1/rp2040-rtc-alarm
embassy-rp (rp2040): Rtc wait_for_alarm
2025-09-17 09:19:38 +00:00
i509VCB
bbc93851fb
Merge pull request #4646 from Iooon/mspm0-adc
MSPM0: add adc implementation
2025-09-17 05:18:03 +00:00
Dario Nieuwenhuis
ab81b797c2
Merge pull request #4674 from per42/adc_v3-enums
ADC v3: Migrate to stm32-data g0 with enums
2025-09-16 20:56:36 +00:00
Per Rosengren
06a1eceaf1 Undo autoformat 2025-09-16 19:24:00 +02:00
Per Rosengren
42c21a24e5 Merge remote-tracking branch 'upstream/main' into adc_v3-enums 2025-09-16 19:17:13 +02:00
Per Rosengren
4e1e424955 Cleanup 2025-09-16 19:14:00 +02:00
Per Rosengren
07e86b23f1 Re-export API enums and update examples 2025-09-16 19:11:13 +02:00
Per Rosengren
4a6d8a3fdf rustfmt 2025-09-16 18:49:24 +02:00
Per Rosengren
ceec07fc94 changelog entry 2025-09-16 18:46:25 +02:00
Per Rosengren
575b27f9f4 ADC v3: Migrate to stm32-data g0 with enums
Also allow separate sample times in read()
2025-09-16 18:11:24 +02:00
Dario Nieuwenhuis
0170641380 ci: docserver -c flag doesn't exist anymore 2025-09-16 16:01:41 +02:00
Dario Nieuwenhuis
5ad56290ff
Merge pull request #4671 from tonarino/chunk-ospi-dma-write
embasy-stm32: Allow large OSPI DMA writes with chunking
2025-09-16 13:54:44 +00:00
goodhoko
97462c07ce Aaaaaand the changelog of course 2025-09-16 14:39:45 +02:00
Brian Schwind
e72e17ded8 Write data with the Ospi peripheral in chunks to respect the max DMA transfer size 2025-09-16 14:28:48 +02:00
Dario Nieuwenhuis
ec117e3b08
Merge pull request #4670 from tonarino/handle-ospi-errors
embassy-stm32: Handle OSPI address errors
2025-09-16 09:47:51 +00:00
goodhoko
9ae76cbad6 Don't forget to update the changelog (again) 2025-09-16 09:49:01 +02:00
goodhoko
8ed1e796ba Handle OSPI address errors
We were using OSPI in indirect mode via DMA and noticed that the transfer future would never resolve. It was forever busy-looping in `finish_dma()` on the `while !regs.sr().read().tcf() {}` line.

After some debugging we noticed that the the `TEF` flag is set. The data sheet says the following about this flag:

> The following errors set the TEF flag in OCTOSPI_SR and generates an interrupt if enabled (TEIE = 1 in OCTOSPI_CR):
> - in indirect or automatic status-polling mode, when a wrong address has been programmed in OCTOSPI_AR (according to the device size defined by DEVSIZE[4:0]).
> - in indirect mode, if the address plus the data length exceed the device size: TEF is set as soon as the access is triggered.

Indeed we were configuring our device size to 0 while specifying a non-zero address.

Detect this condition and return an error early - as soon as we configure the registers (which, according to the data sheet, should be enough to raise the flag)

Also document this behavior on the respective TransferConfig and Config fields.

Testing
-------
See https://github.com/goodhoko/spi-error-test/blob/main/src/main.rs
2025-09-16 09:47:23 +02:00
1-rafael-1
a54996d8d7 RTC alarm test timing was off 2025-09-16 05:49:14 +02:00
Dario Nieuwenhuis
fe95e33861
Merge pull request #4667 from tonarino/config-derive
Unify derivation of Clone, Copy and defmt::format for all *SPI configs
2025-09-15 23:09:39 +00:00
goodhoko
337da33c7a Also derive for enums that aren't available under my feature-set 2025-09-16 00:57:23 +02:00
goodhoko
759ea1deb9 It's "derive" all the way down 2025-09-16 00:45:48 +02:00
goodhoko
aec887fe0a Don't forget to update the changelog (thanks CI!) 2025-09-16 00:39:22 +02:00
goodhoko
542ae72ca7 Unify derivation of Clone, Copy and defmt::format for all *SPI configs 2025-09-16 00:37:00 +02:00
1-rafael-1
362624ca5f Log current date and time when alarm is triggered 2025-09-15 21:57:49 +02:00
1-rafael-1
dd10e372d2 Fix race condition in RTC alarm by using AtomicBool flag 2025-09-15 21:57:41 +02:00
1-rafael-1
ac32f43c3d alarm handling to poll hardware status directly; add ci test 2025-09-15 21:10:22 +02:00
1-rafael-1
37fd802f96 Update CHANGELOG.md 2025-09-15 20:15:57 +02:00
1-rafael-1
6bb3d2c072 Merge branch 'main' into rp2040-rtc-alarm 2025-09-15 20:07:18 +02:00
Dario Nieuwenhuis
92a6fd2946
Merge pull request #4658 from Riceman2000/main
Add example for W55RP20-EVB-Pico
2025-09-15 16:29:17 +00:00
Dario Nieuwenhuis
a674030f13
Merge pull request #4661 from mkj/pr/onewire-parasite
rp: Add onewire parasite power for ds18b20
2025-09-15 12:57:53 +00:00
Dario Nieuwenhuis
83209b812c Use new docserver bin to build docs. 2025-09-15 14:03:12 +02:00
Dario Nieuwenhuis
dfe5d1bd29
Merge pull request #4664 from phycrax/qspi_gpio_speed
embassy-stm32: Configurable gpio speed for QSPI
2025-09-15 10:50:37 +00:00
Süha Ünüvar
77d8251613 tag config as non exhaustive 2025-09-15 18:44:52 +08:00
Süha Ünüvar
5ee77055a1 fix examples 2025-09-15 18:43:23 +08:00
Dario Nieuwenhuis
34370cc7df
Merge pull request #4665 from dimpolo/format_adc_averaging
derive Debug and Format for Averaging
2025-09-15 10:27:27 +00:00
dimi
219754ff6c derive Debug and Format for Averaging 2025-09-15 12:21:45 +02:00
Süha Ünüvar
9a4bdec392 update changelog 2025-09-15 18:07:56 +08:00
Süha Ünüvar
db1275358c add gpio speed to qspi config 2025-09-15 18:05:30 +08:00
riceman2000
1c080559fd Fix removed comments 2025-09-14 14:14:59 -04:00
riceman2000
daae1fe5c9 Up SPI freq 2025-09-14 11:30:22 -04:00
Matt Johnston
7c551b4fdf rp/pio: Copy onewire examples from rp to rp235x
The rp pio_onewire example was updated on
cd27a8a06b0160d654ebed7b89ca473041710235 but not rp235x.
Copy them to be the same.
2025-09-14 16:54:14 +08:00
Matt Johnston
8f10e3638d rp/pio: Add onewire strong pullups, parasite power
DS18B20 sensors require a strong pullup to be applied for the duration
of the temperature conversion, within 10us of the command. The rp2xxx
pins have sufficient drive strength to use as the pullup (no external
mosfet needed).

Add a new write_bytes_pullup() that will apply the pullup after
bytes are written. Existing read_bytes()/write_bytes() has no change to
onewire timing.

A pio_onewire_parasite example reads multiple sensors individually,
applying the strong pullup.
2025-09-14 16:54:14 +08:00
crispaudio
31b5a3f0a4 mspm0-adc: implement From for AnyAdcChannel 2025-09-14 01:34:49 +02:00