feat(legacy_driver): add kconfig to skip legacy confilct check

This commit is contained in:
Chen Jichang
2024-12-12 18:13:53 +08:00
parent 466da04867
commit 5e7e352b5a
13 changed files with 93 additions and 3 deletions
+2
View File
@@ -1705,6 +1705,7 @@ int i2c_slave_read_buffer(i2c_port_t i2c_num, uint8_t *data, size_t max_size, Ti
}
#endif
#if !CONFIG_I2C_SKIP_LEGACY_CONFLICT_CHECK
/**
* @brief This function will be called during start up, to check that this legacy i2c driver is not running along with the new I2C driver
*/
@@ -1720,3 +1721,4 @@ static void check_i2c_driver_conflict(void)
}
ESP_EARLY_LOGW(I2C_TAG, "This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h`");
}
#endif //CONFIG_I2C_SKIP_LEGACY_CONFLICT_CHECK