mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00
ESP32/S2: I2S wait for TX start (#1375)
* ESP32/S2: I2S wait for TX start * CHANGELOG.md
This commit is contained in:
parent
c8bd107218
commit
392ae7dee6
@ -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)
|
- 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)
|
- 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)
|
- 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
|
### Changed
|
||||||
|
|
||||||
|
@ -1293,6 +1293,10 @@ mod private {
|
|||||||
fn tx_start() {
|
fn tx_start() {
|
||||||
let i2s = Self::register_block();
|
let i2s = Self::register_block();
|
||||||
i2s.conf().modify(|_, w| w.tx_start().set_bit());
|
i2s.conf().modify(|_, w| w.tx_start().set_bit());
|
||||||
|
|
||||||
|
while i2s.state().read().tx_idle().bit_is_set() {
|
||||||
|
// wait
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn tx_stop() {
|
fn tx_stop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user