mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-29 04:23:54 +00:00
esp_phy: Update ESP32S2 phy lib to support eco1 chip
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "esp_log.h"
|
||||
#include "nvs.h"
|
||||
#include "nvs_flash.h"
|
||||
#include "esp_efuse.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/portmacro.h"
|
||||
@@ -577,6 +578,10 @@ void esp_phy_load_cal_and_init(void)
|
||||
char * phy_version = get_phy_version_str();
|
||||
ESP_LOGI(TAG, "phy_version %s", phy_version);
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32S2
|
||||
phy_eco_version_sel(esp_efuse_get_chip_ver());
|
||||
#endif
|
||||
|
||||
esp_phy_calibration_data_t* cal_data =
|
||||
(esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);
|
||||
if (cal_data == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user