mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-21 14:57:00 +08:00
bugfix(i2s): fix i2s dma error
This commit is contained in:
@ -650,6 +650,9 @@ static esp_err_t i2s_param_config(i2s_port_t i2s_num, const i2s_config_t *i2s_co
|
|||||||
I2S[i2s_num]->conf.rx_reset = 1;
|
I2S[i2s_num]->conf.rx_reset = 1;
|
||||||
I2S[i2s_num]->conf.rx_reset = 0;
|
I2S[i2s_num]->conf.rx_reset = 0;
|
||||||
|
|
||||||
|
// disable all i2s interrupt
|
||||||
|
I2S[i2s_num]->int_ena.val = 0;
|
||||||
|
|
||||||
//reset dma
|
//reset dma
|
||||||
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 1;
|
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 1;
|
||||||
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 0;
|
p_i2s_obj[i2s_num]->dma->conf0.rx_rst = 0;
|
||||||
|
@ -84,7 +84,7 @@ void app_main()
|
|||||||
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, // 2-channels
|
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, // 2-channels
|
||||||
.communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB,
|
.communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB,
|
||||||
.dma_buf_count = 6,
|
.dma_buf_count = 6,
|
||||||
.dma_buf_len = 60
|
.dma_buf_len = 256
|
||||||
};
|
};
|
||||||
i2s_pin_config_t pin_config = {
|
i2s_pin_config_t pin_config = {
|
||||||
.bck_o_en = I2S_BCK_EN,
|
.bck_o_en = I2S_BCK_EN,
|
||||||
|
Reference in New Issue
Block a user