Maximilian Rozwora
c52f56785f
Apply cargo format
2025-02-24 14:48:32 +01:00
Maximilian Rozwora
76756ee702
fix: BufferedUartRx embedded_hal_nb::serial::Read impl
2025-02-24 14:34:41 +01:00
Dario Nieuwenhuis
1780f8479e
Merge pull request #3878 from showier-drastic/i2c-v2-add-nack
...
stm32: i2c-v2: Add error handling
2025-02-17 19:52:41 +01:00
Dario Nieuwenhuis
897d42e012
Merge pull request #3880 from nikvoid/stm32-rtc-subsecond
...
STM32: RTC subsecond support
2025-02-16 23:22:50 +00:00
Fredrik Reinholdsen
7f4cce536a
fix: Fix for async I2C v2 driver sequential read/write reads. Fixes #3887
...
For I2C devices that support variable length reads, sending chunks of data as long as the master keeps ACK:ing after each received byte, sequential reads will sometimes get out of sync, causing additional reads to return invalid data.
This was caused by a delay between awaiting the DMA read and sending the software STOP signal, which may result in the slave to have time to send a byte of data in between, causing potential miss-alignment. This would then cause subsequent reads to return invalid data.
Async write-reads now no longer send STOP after the initial write, matching the behaviour of the blocking version.
2025-02-15 12:06:49 +01:00
nikvoid
610804f138
stm32: read microsecond from RTC
2025-02-13 15:15:47 +02:00
Shaw Drastin
1c1aea62d0
stm32: i2c-v2: Add error handling
...
Currently when error occurres, we have to wait for timeout, which is
less than ideal. Enable related interrupts, and return Err when error
occurres.
2025-02-12 21:16:18 +08:00
elagil
38799c63fd
fix: UCPD drop logic
...
Read rxpaysz immediately
2025-02-07 23:31:02 +01: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
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
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
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
noracarmig
72020fc012
Reset complete count global variable on Dma configure
2025-01-26 14:53:10 +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
nikvoid
dff8be9bb6
run rustfmt
2025-01-22 18:11:32 +02:00
nikvoid
83ccbf48d7
remove cortex-m delay
2025-01-22 18:09:25 +02:00
nikvoid
2d7e0b6e0f
use Delay
from embassy-time
to wait for PHY response
2025-01-22 13:43:45 +02:00
nikvoid
5885369f47
Option to detect Ethernet PHY address automatically
2025-01-22 13:23:29 +02:00
Dario Nieuwenhuis
195b1a593a
Merge pull request #3792 from adamgreig/stm32-clkmux-unreachable
...
stm32: Change unreachable panic to explicit error message when access…
2025-01-22 01:22:37 +00:00
Adam Greig
da8612e95b
stm32: Change unreachable panic to explicit error message when accessing clock-muxed peripherals set to invalid clocks
2025-01-22 01:17:20 +00:00
Dario Nieuwenhuis
010d4622f9
Merge pull request #3765 from dimpolo/hertz-display
...
stm32: impl Display for time::Hertz
2025-01-22 00:34:40 +01:00
Dario Nieuwenhuis
23cb93081e
Merge pull request #3791 from embassy-rs/fix-split-pins
...
Fix issue with enabled split-pxy feature
2025-01-21 23:02:29 +00:00
Dario Nieuwenhuis
eda51673f5
Merge pull request #3704 from CNLHC/pwm_support_gp32
...
feat: Add 32-bit timer support for waveform function
2025-01-21 22:57:47 +00:00
Dario Nieuwenhuis
5bba87e0c9
Merge pull request #3782 from Andreychik32/main
...
stm32/can: fix wrong negation of fdcan set_transmit_pause function parameter
2025-01-21 22:29:57 +00:00
mahu-wm
42817c4259
Fix issue with enabled split-pxy feature
...
The fixed error message is:
error[E0425]: cannot find value `pin_name` in this scope
2025-01-20 10:55:21 +01:00
Dario Nieuwenhuis
c39076724f
Merge pull request #3781 from markus-k/stm32g0-hsisysdiv
...
stm32/rcc: add HSISYS support for g0
2025-01-17 16:19:27 +00:00
Andrii
08ef834301
fix wrong negation of fdcan set_transmit_pause function parameter
2025-01-17 18:05:50 +02:00
Markus Kasten
5d26bca2e7
stm32/rcc: add HSISYS support for g0
...
adds support to divide HSI clock, which allows running in low power mode on HSI
2025-01-17 12:07:43 +01:00
Martin Algesten
9a159a8db0
Full RCC support for STM32F107
2025-01-16 15:31:41 +01:00
Ulf Lilleengen
ed63f80637
chore: bump embassy-sync version
...
Prepare version 0.6.2 for release
2025-01-15 16:12:36 +01:00
dimi
1c9fa80492
stm32: impl Display for time::Hertz
2025-01-13 11:30:49 +01:00
Dario Nieuwenhuis
793eb72cf2
Update stm32-metapac, actually release embassy-stm32 v0.2.0
2025-01-10 18:12:41 +01:00
Dario Nieuwenhuis
593d9973e0
Release embassy-stm32 v0.2.0
2025-01-10 17:38:39 +01:00
Volkalex28
fb1368d9c8
Fix unsupported trace! call for EndpointAddress
2025-01-09 11:02:47 +02:00
Matt Rodgers
844d3b38de
stm32: flash: fix flash erase on stm32f3xx series
...
STM32F3xx series also needs a wait of at least one clock cycle before
reading the BSY bit during a flash erase - previously this was only
applied to STM32F1xx series.
2025-01-08 10:11:25 +00:00
Dario Nieuwenhuis
06869e2e85
Merge pull request #3725 from CNLHC/qspi_mmap
...
feat: mmap mode for qspi and example
2025-01-07 22:36:01 +01:00
Dario Nieuwenhuis
2a06eb2459
Merge pull request #3667 from williams-one/stm32u5-add-hspi-support
...
STM32U5: add HSPI support
2025-01-07 21:15:54 +00:00
Dario Nieuwenhuis
90cb610ef7
Merge pull request #3716 from elagil/fix_stm32f4_i2s_clocks
...
Fix STM32F4 I2S clock calculations
2025-01-07 22:06:20 +01:00
Dario Nieuwenhuis
d08116da49
Fix typo.
2025-01-07 22:00:41 +01:00
William Spinelli
19efea195d
stm32u5: Add support for HSPI peripheral
2025-01-07 21:55:08 +01:00
Liu Hancheng
09cc9c65c9
feat: mmap mode for qspi and example
2025-01-07 21:47:27 +01:00
Dario Nieuwenhuis
7c3099b9e2
Merge pull request #3724 from CNLHC/qspi_waiting_condition
...
FIX: QSPI synchronous read operation hangs when FIFO is not full
2025-01-07 20:38:51 +00:00