9529 Commits

Author SHA1 Message Date
wackazong
b7fbf6d519
Add saturating_add and saturating_sub to Instant 2025-02-04 11:03:17 +01: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
Dario Nieuwenhuis
7ec0b30484
Merge pull request #3804 from Easyoakland/fix-udp-send
Return Truncate error instead of looping forever on udp send.
2025-01-26 23:02:05 +00:00
Easyoakland
c0d14a145c - use with
- rename to Truncated to `PacketTooLarge`
2025-01-26 15:51:31 -07:00
Dario Nieuwenhuis
ecc1aab867
Merge pull request #3813 from embassy-rs/stm32-eth-simplify-smi
stm32/eth: rename PHY->Phy, GenericSMI -> GenericPhy. Remove unneeded unsafes.
2025-01-26 21:52:43 +00:00
Dario Nieuwenhuis
b1245858f3 stm32/eth: rename PHY->Phy, GenericSMI -> GenericPhy. Remove unneeded unsafes.
We shouldn't use `unsafe` to mark merely "dangerous" actions, only actions that
actually cause UB.
2025-01-26 22:43:28 +01:00
Dario Nieuwenhuis
c8d29a1e2c
Merge pull request #3795 from nikvoid/stm32-phy-addr-detection
STM32: Option to detect Ethernet PHY address automatically
2025-01-26 21:21:06 +00:00
Dario Nieuwenhuis
ff52bde787 stm32: change all examples and tests to use GenericSMI::new_auto(). 2025-01-26 22:17:25 +01:00
Dario Nieuwenhuis
7e0c70b1aa
Merge pull request #3812 from noracarmig/sai_v3_dma
Allow stm32 H7 and L5 families to use external SAI sync & allow recovering after dropping a DMA channel
2025-01-26 20:21:51 +00:00
Dario Nieuwenhuis
3064318220
Merge pull request #3811 from elagil/fix_stm32h5_ucpd
Fix STM32H5 UCPD reception
2025-01-26 20:20:25 +00:00
Dario Nieuwenhuis
845da2ced1
Merge pull request #3810 from Freax13/enhancement/invalid-i2c-rp
remove checks for reserved I2c addresses
2025-01-26 16:53:17 +00:00
Tom Dohrmann
3e5514653f
remove checks for reserved I2c addresses
There are some non-compliant devices that respond to reserved I2c
addresses. rp2040 behaves sanely for these addresses, so let's just
allow using them.
2025-01-26 17:43:04 +01:00
elagil
d9026f06fe fix: STM32H5 UCPD reception 2025-01-26 17:33:26 +01:00
noracarmig
fcacbae233 Allow chips from L5 (sai_v3_2pdm) and H7 (sai_v3_4pdm) families to use external sai sync 2025-01-26 15:58:52 +00:00
Dario Nieuwenhuis
7db46771b8
Merge pull request #3807 from ibuki2003/sync-channel-clear-wakeup
embassy-sync: fix clear() to wake senders
2025-01-26 15:43:07 +00:00
Dario Nieuwenhuis
ef78441ec1
Merge pull request #3808 from embassy-rs/jamesmunns-patch-1
Set embassy-rp target in docs-rs metadata
2025-01-26 15:32:59 +00:00
noracarmig
72020fc012 Reset complete count global variable on Dma configure 2025-01-26 14:53:10 +00:00
James Munns
f2128a2953
Update Cargo.toml
Avoid docs.rs build failures like https://docs.rs/crate/embassy-rp/0.3.0/builds/1609962
2025-01-26 12:53:39 +01:00
ibuki2003
e2ddba92f7
embassy-sync: fix clear() to wake senders 2025-01-26 17:23:41 +09:00
Easyoakland
2fe299cc53 don't infinite loop if udp::send methods receive a buffer too large to ever be sent 2025-01-24 18:45:43 -07:00
Dario Nieuwenhuis
51d87c6603
Merge pull request #3802 from Georges760/stm32-more-defmt
derive `defmt::Format` on pub struct/enum of `embassy-stm32::rtc`
2025-01-24 11:35:22 +00:00
Georges Palauqui
da0f6dbe08 derive defmt::Format on pub struct/enum of stm32::rtc 2025-01-24 11:58:33 +01:00
Dario Nieuwenhuis
4e3d066251
Merge pull request #3779 from algesten/fix/f107-rcc
Full RCC support for STM32F107
2025-01-24 09:13:45 +00:00
Martin Algesten
4743501172 Move PLL2/3 config to before PLL 2025-01-24 10:06:32 +01:00
Martin Algesten
3ba94c0ab3 Fix init order of set_prediv1src 2025-01-24 09:36:11 +01:00
Martin Algesten
c72d9ec859 Review fixes 2025-01-24 09:16:24 +01:00
nikvoid
afe6b9a192 split PHY constructor to new and new_auto 2025-01-23 13:34:54 +02:00