From d4757a329e6e67165bd22d6f92a349f44ac58ace Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Mon, 25 Apr 2022 14:14:01 +0800 Subject: [PATCH] add todo --- components/esp_hw_support/port/esp32c2/rtc_init.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/components/esp_hw_support/port/esp32c2/rtc_init.c b/components/esp_hw_support/port/esp32c2/rtc_init.c index 86c4333385..b0fc68303e 100644 --- a/components/esp_hw_support/port/esp32c2/rtc_init.c +++ b/components/esp_hw_support/port/esp32c2/rtc_init.c @@ -126,16 +126,7 @@ void rtc_vddsdio_set_config(rtc_vddsdio_config_t config) static void set_ocode_by_efuse(int calib_version) { -#if !CONFIG_IDF_TARGET_ESP32C2 //TODO: Need check for esp32c2 - assert(calib_version == 1); - // use efuse ocode. - uint32_t ocode; - esp_err_t err = esp_efuse_read_field_blob(ESP_EFUSE_OCODE, &ocode, 8); - assert(err == ESP_OK); - (void) err; - REGI2C_WRITE_MASK(I2C_ULP, I2C_ULP_EXT_CODE, ocode); - REGI2C_WRITE_MASK(I2C_ULP, I2C_ULP_IR_FORCE_CODE, 1); -#endif + // ESP32C2-TODO: IDF-4940 abort(); }