Skip to content

Commit abcf740

Browse files
committed
stm32/i2c: remove busy waiting on BUSY flag in v2
1 parent 9cd6c92 commit abcf740

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
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- fix: Avoid generating timer update events when updating the frequency ([#4890](https://github.com/embassy-rs/embassy/pull/4890))
1313
- chore: cleanup low-power add time
1414
- fix: Allow setting SAI peripheral `frame_length` to `256`
15+
- fix: stm32/i2c fix busy waiting on BUSY flag in v2
1516
- fix: flash erase on dual-bank STM32Gxxx
1617
- feat: Add support for STM32N657X0
1718
- 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)