mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat(legacy_driver): add kconfig to skip legacy confilct check
This commit is contained in:
@@ -1961,6 +1961,7 @@ esp_err_t i2s_set_pin(i2s_port_t i2s_num, const i2s_pin_config_t *pin)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
#if !CONFIG_I2S_SKIP_LEGACY_CONFLICT_CHECK
|
||||
/**
|
||||
* @brief This function will be called during start up, to check that the new i2s driver is not running along with the legacy i2s driver
|
||||
*/
|
||||
@@ -1974,3 +1975,4 @@ static __attribute__((constructor)) void check_i2s_driver_conflict(void)
|
||||
}
|
||||
ESP_EARLY_LOGW(TAG, "legacy i2s driver is deprecated, please migrate to use driver/i2s_std.h, driver/i2s_pdm.h or driver/i2s_tdm.h");
|
||||
}
|
||||
#endif //CONFIG_I2S_SKIP_LEGACY_CONFLICT_CHECK
|
||||
|
Reference in New Issue
Block a user