Skip to content

Commit 3a207a6

Browse files
committed
stm32/i2c: remove busy waiting on BUSY flag in v2
1 parent a6d392b commit 3a207a6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

embassy-stm32/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased - ReleaseDate
99

10+
- fix: stm32/i2c fix busy waiting on BUSY flag in v2
1011
- fix: flash erase on dual-bank STM32Gxxx
1112
- feat: Add support for STM32N657X0
1213
- feat: timer: Add 32-bit timer support to SimplePwm waveform_up method following waveform pattern ([#4717](https://github.com/embassy-rs/embassy/pull/4717))

embassy-stm32/src/i2c/v2.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,7 @@ impl<'d, M: Mode, IM: MasterMode> I2c<'d, M, IM> {
199199
while info.regs.cr2().read().start() {
200200
timeout.check()?;
201201
}
202-
203-
// Wait for the bus to be free
204-
while info.regs.isr().read().busy() {
205-
timeout.check()?;
206-
}
207202
}
208-
209203
// Set START and prepare to send `bytes`. The
210204
// START bit can be set even if the bus is BUSY or
211205
// I2C is in slave mode.

0 commit comments

Comments
 (0)