3213 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
17cce79807
Merge pull request #3992 from elagil/usb_fixes
Small USB-related fixes
2025-03-25 11:03:53 +00:00
John Kjellberg
3e63a2e5df Clarified ADC API documentation for some STM32s. 2025-03-25 11:10:51 +01:00
elagil
15394ae5fa fix(usb): blocking wait 2025-03-24 19:49:44 +01:00
elagil
e34b4d69ee fix: build 2025-03-22 11:58:50 +01:00
elagil
07387ea405 fix: apply STM32H5 USB errata (OUT transfer delay) 2025-03-22 11:47:36 +01:00
Tobias Naumann
402b78138b Check and clear idle and error flags together 2025-03-21 14:23:25 +01:00
Tobias Naumann
ac7c44c1d1 Use write closure to clear idle flag, only read rdr on usart versions which need it 2025-03-21 14:22:26 +01:00
Tobias Naumann
1e6192ffa5 Add embedded_hal_nb::serial::Read impl for RingBufferedUartRx 2025-03-21 11:20:28 +01:00
Rasmus Melchior Jacobsen
5e762e8cf4 Fix compile error in ospi 2025-03-20 01:58:44 +01:00
Rasmus Melchior Jacobsen
97ed7f085a feat(stm32): Add OTP flash region (again) 2025-03-20 01:58:44 +01:00
Timofei Korostelev
8c6fa83006 Added ADC support for STM32C0. 2025-03-20 01:58:44 +01:00
Dario Nieuwenhuis
9407ac67d3 Update stm32-data. 2025-03-20 01:58:44 +01:00
Tobias Naumann
71d94ad5e7 Recover from errors in ringbuffered usart 2025-03-20 00:43:38 +01:00
dimi
e9b842082d embassy-stm32::hspi: gate derive(defmt::Format) behind feature flag 2025-03-18 17:19:11 +01:00
Dario Nieuwenhuis
86572bf009
Merge pull request #3964 from elagil/sof_out_usb
Add optional USB driver SOF output
2025-03-16 21:10:27 +00:00
elagil
63f7a5da09 fix: disable new_with_sof for STM32L1 2025-03-16 22:02:43 +01:00
elagil
cecbe082ff fix: only ISO EP is always double buffered 2025-03-16 16:34:09 +01:00
elagil
0ff6184723 refactor: fix build warnings 2025-03-15 20:28:23 +01:00
elagil
8fef488738 refactor: USB read function restructure 2025-03-15 20:24:14 +01:00
elagil
0b468ef29c fix: iso out order 2025-03-15 20:16:32 +01:00
elagil
0b6b0756ed fix: USB ISO IN EP stat 2025-03-15 13:46:20 +01:00
elagil
f1db070f78 feat: add optional USB SOF output 2025-03-12 23:18:34 +01:00
Dario Nieuwenhuis
38f26137fc
Merge pull request #3950 from Matt-Allen-Bose/stm32-pwm-pin-config
Add ability to create STM32 timer channels with full pin configuration
2025-03-11 18:09:47 +00:00
Corey Schuhen
424d20727e Reference count senders and receivers so that we don't close down early. 2025-03-09 17:03:28 +10:00
Matt Allen
5e3cfc7b5c
Merge branch 'embassy-rs:main' into stm32-pwm-pin-config 2025-03-07 10:41:36 -05:00
Matt Allen
91d8175f62 Fixed documentation 2025-03-06 09:44:06 -05:00
Matt Allen
1646dc36f2 Added gpio version specific code 2025-03-06 09:41:07 -05:00
Ulf Lilleengen
d378dca352
Merge pull request #3930 from meowcakes/fix_uart
Fix STM32 UART: Add separate TX waker and only clear idle flag in RingBufferedUartRx
2025-03-06 07:21:08 +00:00
Matt Allen
f22649e008 Added function to channel_impl to allow full configuration of the pin 2025-03-05 22:10:00 -05:00
Hendrik v. Raven
4c01f033ea
stm32: do not use private constructor 2025-02-28 09:06:18 +01:00
Rogan Morrow
db44679e75 fix 2025-02-28 12:50:15 +11:00
Rogan Morrow
5512e3a540 fix 2025-02-28 12:49:28 +11:00
Rogan Morrow
32f6f1513d add missing module 2025-02-28 12:41:44 +11:00
Rogan Morrow
2cc21d4883 feature flag 2025-02-28 12:40:01 +11:00
Rogan Morrow
065071b467 add separate tx waker 2025-02-28 12:30:23 +11:00
Rogan Morrow
3b37c79331 only clear idle flag 2025-02-28 12:28:57 +11:00
Aaron Griffith
03f73ce339 stm32/i2c: disable peripheral when changing timings 2025-02-27 06:50:01 -05:00
Guy Marino
27709df94a
Implement core::error::Error for STM32 Serial Devices 2025-02-26 14:14:16 -08:00
antonello.contini
0c1601651b cargo fmt 2025-02-25 22:02:23 +01:00
antonello.contini
724e1a34e5 simpler configuration 2025-02-25 21:37:01 +01:00
antonello.contini
51085a5e94 let user set external i2s clock frequency 2025-02-25 21:21:23 +01:00
antonello.contini
f1c7e388e6 do not use pllsrc for i2s; added field for plli2ssrc selection 2025-02-25 19:59:57 +01:00
Dario Nieuwenhuis
00ef474b94
Merge pull request #3915 from embedded-rust-iml/fix/BufferedUartRx-nb-read
fix: BufferedUartRx embedded_hal_nb::serial::Read impl
2025-02-24 14:34:13 +00:00
Maximilian Rozwora
519bd86467 fix: Check buffer full before pop_done() 2025-02-24 15:11:14 +01:00
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
Ronald Weber
7a2f038800 doc: Fix "the the" 2025-02-19 17:29:21 +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