11179 Commits

Author SHA1 Message Date
Robin Mueller
d1b55faace code review changes 2025-09-22 00:45:29 +02:00
Robin Mueller
f7c3005345 add basic RTC driver for nRF 2025-09-22 00:24:45 +02:00
Dario Nieuwenhuis
5a94ad0062
Merge pull request #4688 from 9names/rp2350_msplim_stackguard
Use msplim for RP2350 stackguard
2025-09-21 14:42:46 +00:00
Dario Nieuwenhuis
483a9ad53a
Merge pull request #4687 from 0e4ef622/persist
nrf: add persist() method for gpio and ppi
2025-09-21 14:38:07 +00:00
Dario Nieuwenhuis
0342102494
Merge pull request #4690 from narottamroyal/usb-crs-sync
USB CRS sync support for STM32C071
2025-09-21 14:34:01 +00:00
Narottam Royal
9e94c1bda3 Add support for USB CRS sync 2025-09-21 23:13:06 +12:00
9names
a3ee22be13 chore: update changelog 2025-09-21 19:19:15 +10:00
9names
c69d17e5fb examples/rp235x: Add multicore stack overflow example 2025-09-21 19:12:38 +10:00
9names
9bb77f36f9 rp: Use msplim for rp235x core1 stack guard 2025-09-21 19:12:31 +10:00
Matthew Tran
6e1d6be315 nrf: add persist() method for gpio and ppi 2025-09-20 11:56:27 -05:00
Ulf Lilleengen
8394e13208
Merge pull request #4684 from embassy-rs/cyw43-transport-error
fix: add error handling for HCI transport
2025-09-19 10:25:19 +00:00
Ulf Lilleengen
e46f3af64f chore: rustfmt 2025-09-19 12:18:20 +02:00
Ulf Lilleengen
c77ee0cb32 chore: add changelog item. 2025-09-19 12:18:12 +02:00
Ulf Lilleengen
6b3d2db471 fix: add error handling for HCI transport 2025-09-19 12:14:31 +02:00
Ulf Lilleengen
e4c388c704
Merge pull request #4683 from embassy-rs/bt-hci-0.5
chore: update to bt-hci 0.5.0
2025-09-19 07:56:11 +00:00
Ulf Lilleengen
e5879db0f4 chore: update to bt-hci 0.5.0 2025-09-19 09:53:25 +02:00
Ulf Lilleengen
4b5707b256
Merge pull request #4680 from diondokter/clone-on-shared-i2c
[embassy-embedded-hal] Clone on shared i2c
2025-09-18 09:22:04 +00:00
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