Code: Select all
err = i2s_isr_register(i2s_num, i2s_config->intr_alloc_flags, i2s_intr_handler_default, p_i2s_obj[i2s_num], &p_i2s_obj[i2s_num]->i2s_isr_handle);
if (err != ESP_OK) {
#ifdef CONFIG_PM_ENABLE
if (p_i2s_obj[i2s_num]->pm_lock) {
esp_pm_lock_delete(p_i2s_obj[i2s_num]->pm_lock);
}
#endif
free(p_i2s_obj[i2s_num]);
p_i2s_obj[i2s_num] = NULL;
ESP_LOGE(I2S_TAG, "Register I2S Interrupt error");
return err;
}
Code: Select all
ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip");
i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
i2s_stream_writer = i2s_stream_init(&i2s_cfg);
while(i2s_stream_writer == NULL)
{
ESP_LOGI(TAG, "[2.2] Create i2s stream failed ");
vTaskDelay(10 / portTICK_RATE_MS);
i2s_stream_writer = i2s_stream_init(&i2s_cfg);
}
报错 :Register I2S Interrupt error