9757 Commits

Author SHA1 Message Date
elagil
38799c63fd fix: UCPD drop logic
Read rxpaysz immediately
2025-02-07 23:31:02 +01:00
Dario Nieuwenhuis
3b734a7d08
Merge pull request #3857 from swork/swork-add-pio-functions
Add PIO functions.
2025-02-07 20:28:07 +01:00
Steve Work
3b74732f40 Rename readers with get_, per CBJamo review. Tweak use_program docstring.
The tweak arranges that "grep sideset" finds use_program() when grokking source - this spelling is used
elsewhere, as in PinConfig for example, and I managed to miss use_program.
2025-02-07 09:26:34 -08:00
Dario Nieuwenhuis
f2a6014cd3
Merge pull request #3844 from showier-drastic/main
SpiDevice cancel safety: always set CS pin to high on drop
2025-02-07 13:54:14 +01:00
Shaw Drastin
dc2ce92e32 Add proper error handling if CS is not dropped 2025-02-07 10:39:08 +08:00
Steve Work
9acbfc9c22 Add PIO functions.
Add some (I think) needed functions:
ConfigPins::set_sideset_pins (the other pin types are covered, why not this one?)
Several runtime StateMachine manipulations:
 - addr()
 - tx_threshold()
 - set_tx_threshold
 - rx_threshold()
 - set_rx_threshold()
 - set_thresholds() - both at once, same value
2025-02-06 17:46:04 -08:00
Dario Nieuwenhuis
4e69e5b3c7 rp: add changelog for embassy-rp v0.3.1. 2025-02-06 00:10:50 +01:00
Dario Nieuwenhuis
5c00d4b0b6
Merge pull request #3853 from embassy-rs/rp-remove-workaround
examples/rp: remove unneeded sio spinlock stuck bug workarounds.
2025-02-05 23:05:26 +00:00
Dario Nieuwenhuis
66c5fe0a75 examples/rp: remove unneeded sio spinlock stuck bug workarounds.
This is now workarounded by embassy-rp itself.
2025-02-06 00:02:52 +01:00
Dario Nieuwenhuis
0fe288879b
Merge pull request #3852 from MaximeB5/patch-1
Replace STM32WBA52CGUxT by STM32WBA55CGUx
2025-02-05 20:45:26 +00:00
Max
401aa725ed
Replace STM32WBA52CGUxT by STM32WBA55CGUx because the WBA55 Nucleo board officially replaces the WBA52 2025-02-05 16:04:59 +01:00
Dario Nieuwenhuis
556cc57c1f
Merge pull request #3851 from embassy-rs/rp23-atomics-fix
rp235x: fix atomics, fix SIO spinlock stuck bug, fix missing core1 reset.
2025-02-05 00:06:41 +00:00
Dario Nieuwenhuis
9da04cc38e rp: make atomics work properly between cores in rp235x. 2025-02-05 00:57:43 +01:00
Dario Nieuwenhuis
bb2d9ec7f8 rp: Workaround "SIO spinlock stuck bug", reset PROC1 at boot.
Just like RP2040. The bug was "working as intended" on rp2040, so it is on rp235x.
2025-02-05 00:57:15 +01:00
Dario Nieuwenhuis
fdb9795d6a
Merge pull request #3763 from robot-rover/fix_rp2040_time_driver
rp: Fix time driver hang
2025-02-04 23:56:43 +00:00
Dario Nieuwenhuis
f663f3b675
Merge pull request #3850 from vic1707/patch-1
Disable clippy error around generated main function
2025-02-04 23:55:39 +00:00
Victor LEFEBVRE
26c6ab7587
Update main.rs 2025-02-05 00:16:10 +01:00
James Munns
a2014c961d
Merge pull request #3848 from wackazong/patch-5
Add must_use to MutexGuard
2025-02-04 16:18:08 +00:00
wackazong
0f04878301
Add must_use to MutexGuard 2025-02-04 17:12:26 +01:00
Dario Nieuwenhuis
d3059bbcf7
Merge pull request #3845 from vinsynth/main
update examples/stm32f4/.../i2s_dma.rs
2025-02-04 13:10:24 +00:00
Ulf Lilleengen
e0eefbb81f
Merge pull request #3846 from wackazong/patch-4
Add saturating_add and saturating_sub to Instant
2025-02-04 11:40:57 +00:00
wackazong
865266a4ae
Take self instead of &mut self
This is more idiomatic since methods with these names usually take self and not &mut self.
2025-02-04 11:09:52 +01:00
wackazong
b7fbf6d519
Add saturating_add and saturating_sub to Instant 2025-02-04 11:03:17 +01:00
vinsynth
b0e3a6481b document clock settings in examples/stm32f4/.../i2s_dma.rs 2025-02-03 22:52:38 -05:00
vinsynth
b5a6353714 update examples/stm32f4/.../i2s_dma.rs 2025-02-03 22:40:42 -05:00
Shaw Drastin
188828775e SpiDevice cancel safety: always set CS pin to high on drop
If a transfer is dropped, the CS will stay in a low state, which
seems to be unsafe.
2025-02-04 10:55:47 +08:00
Dario Nieuwenhuis
2c8a550410
Merge pull request #3842 from jamessizeland/improve-spawn-busy-error
improve SpawnError::Busy message
2025-02-03 23:34:53 +00:00
James Sizeland
c1671572b4
improve SpawnError::Busy message 2025-02-03 23:08:55 +00:00
Dario Nieuwenhuis
f03dca3f96
Merge pull request #3841 from vDorst/fix-core-intrinsics-deprecated
embassy-usb: fix `core::intrinsics` deprecate warning in nightly.
2025-02-03 21:24:51 +00:00
René van Dorst
d363401ba5 embassy-usb: fix core::intrinsics deprecate warning in nightly.
Replaced `core::intrinsics::copy_nonoverlapping` with the
`core::ptr::copy_nonoverlapping`.

   Compiling embassy-usb v0.4.0 (embassy/embassy-usb)
warning: use of deprecated module `core::intrinsics`: import this function via `std::mem` instead
  --> embassy/embassy-usb/src/class/cdc_ncm/mod.rs:17:23
   |
17 | use core::intrinsics::copy_nonoverlapping;
   |                       ^^^^^^^^^^^^^^^^^^^
2025-02-03 22:08:23 +01:00
Dario Nieuwenhuis
113383b8b1
Merge pull request #3840 from bugadani/inline
Allow inlining on time driver boundary
2025-02-03 16:42:38 +00:00
Dániel Buga
37b180c61e
Allow inlining on time driver boundary 2025-02-03 17:20:35 +01:00
Dario Nieuwenhuis
8c5e34604c
Merge pull request #3837 from klownfish/nrf-reg0
nRF52833: configure internal LDO
2025-02-03 00:33:34 +00:00
Dario Nieuwenhuis
81e2d12cc2
Merge pull request #3836 from vinsynth/main
set PLLI2S M and SRC for f4 chips which support it
2025-02-03 00:24:33 +00:00
vinsynth
6ec72c0af0 set PLLI2SM and plli2s_src f423 2025-02-02 18:53:06 -05:00
vinsynth
ce04cf8340 set PLLI2S M and SRC for f4 chips which support it 2025-02-02 18:12:34 -05:00
Dario Nieuwenhuis
69925764dc
Merge pull request #3833 from embediver/main
Add cancel safety notes to Ticker
2025-02-02 22:53:02 +00:00
Marvin Gudel
ec5f283d15 Add cancel safety notes to Ticker 2025-02-02 14:28:45 +01:00
Dario Nieuwenhuis
ae5ad91bbb
Merge pull request #3829 from lsartory/fix_3828
Fix issue #3828
2025-02-02 10:48:04 +00:00
Dario Nieuwenhuis
a2791aefb3
Merge pull request #3832 from Graicc/patch-1
Fix typo in getting started docs
2025-02-02 10:47:12 +00:00
Graic
89b5795eec
Fix typo in getting started docs 2025-02-01 18:06:43 -05:00
lsartory
7d66f1ca19 Fix issue #3828
Zero-copy channels could not be used between interrupts and thread-mode
tasks because the internal buffer is stored as a raw pointer.
A wrapper struct implementing the Sync trait fixes this.
2025-02-01 16:43:41 +01:00
Dario Nieuwenhuis
1b44034208
Merge pull request #3824 from embassy-rs/rip
RIP nrf52833-dk
2025-01-29 22:28:05 +00:00
Dario Nieuwenhuis
1df510e5c9 RIP nrf52833-dk 2025-01-29 23:25:36 +01:00
Dario Nieuwenhuis
6ca31d765a
Merge pull request #3823 from flippette/main
Correct ADC channels for RP235XB
2025-01-29 22:22:18 +00:00
flippette
9d353d251c Correct ADC channels for RP2350XB 2025-01-30 00:16:36 +02:00
klownfish
640612a47f nrf52833: configure internal LDO 2025-01-28 22:27:18 +01:00
Dario Nieuwenhuis
f6532e8f2c
Merge pull request #3814 from Easyoakland/fix-udp-send
Fix udp send pt2
2025-01-27 01:09:39 +01:00
Easyoakland
89e25c7b14 don't mention Poll::Ready for async fns as it's implied 2025-01-26 16:55:52 -07:00
Easyoakland
cbbc1f1a2f update comments to match code 2025-01-26 16:36:12 -07:00