mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
Merge branch 'bugfix/i2s_update_regs_before_start_v5.0' into 'release/v5.0'
i2s: fixed rx update stuck bug (v5.0) See merge request espressif/esp-idf!21776
This commit is contained in:
@ -395,8 +395,8 @@ finish:
|
||||
*/
|
||||
static inline void i2s_ll_tx_start(i2s_dev_t *hw)
|
||||
{
|
||||
hw->tx_conf.tx_update = 0;
|
||||
hw->tx_conf.tx_update = 1;
|
||||
while (hw->tx_conf.tx_update);
|
||||
hw->tx_conf.tx_start = 1;
|
||||
}
|
||||
|
||||
@ -407,8 +407,8 @@ static inline void i2s_ll_tx_start(i2s_dev_t *hw)
|
||||
*/
|
||||
static inline void i2s_ll_rx_start(i2s_dev_t *hw)
|
||||
{
|
||||
hw->rx_conf.rx_update = 0;
|
||||
hw->rx_conf.rx_update = 1;
|
||||
while (hw->rx_conf.rx_update);
|
||||
hw->rx_conf.rx_start = 1;
|
||||
}
|
||||
|
||||
|
@ -397,8 +397,8 @@ finish:
|
||||
*/
|
||||
static inline void i2s_ll_tx_start(i2s_dev_t *hw)
|
||||
{
|
||||
hw->tx_conf.tx_update = 0;
|
||||
hw->tx_conf.tx_update = 1;
|
||||
while (hw->tx_conf.tx_update);
|
||||
hw->tx_conf.tx_start = 1;
|
||||
}
|
||||
|
||||
@ -409,8 +409,8 @@ static inline void i2s_ll_tx_start(i2s_dev_t *hw)
|
||||
*/
|
||||
static inline void i2s_ll_rx_start(i2s_dev_t *hw)
|
||||
{
|
||||
hw->rx_conf.rx_update = 0;
|
||||
hw->rx_conf.rx_update = 1;
|
||||
while (hw->rx_conf.rx_update);
|
||||
hw->rx_conf.rx_start = 1;
|
||||
}
|
||||
|
||||
|
@ -398,8 +398,8 @@ finish:
|
||||
*/
|
||||
static inline void i2s_ll_tx_start(i2s_dev_t *hw)
|
||||
{
|
||||
hw->tx_conf.tx_update = 0;
|
||||
hw->tx_conf.tx_update = 1;
|
||||
while (hw->tx_conf.tx_update);
|
||||
hw->tx_conf.tx_start = 1;
|
||||
}
|
||||
|
||||
@ -410,8 +410,8 @@ static inline void i2s_ll_tx_start(i2s_dev_t *hw)
|
||||
*/
|
||||
static inline void i2s_ll_rx_start(i2s_dev_t *hw)
|
||||
{
|
||||
hw->rx_conf.rx_update = 0;
|
||||
hw->rx_conf.rx_update = 1;
|
||||
while (hw->rx_conf.rx_update);
|
||||
hw->rx_conf.rx_start = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user