ESP32/S2: I2S wait for TX start (#1375)

* ESP32/S2: I2S wait for TX start

* CHANGELOG.md
This commit is contained in:
Björn Quentin 2024-04-02 13:44:02 +02:00 committed by GitHub
parent c8bd107218
commit 392ae7dee6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The TWAI driver can now be used without requiring the `embedded-hal` traits (#1355)
- USB pullup/pulldown now gets properly cleared and does not interfere anymore on esp32c3 and esp32s3 (#1244)
- Fixed GPIO counts so that using async code with the higher GPIO number should no longer panic (#1361, #1362)
- ESP32/ESP32-S2: Wait for I2S getting out of TX_IDLE when starting a transfer (#1375)
### Changed

View File

@ -1293,6 +1293,10 @@ mod private {
fn tx_start() {
let i2s = Self::register_block();
i2s.conf().modify(|_, w| w.tx_start().set_bit());
while i2s.state().read().tx_idle().bit_is_set() {
// wait
}
}
fn tx_stop() {