|
|
@@ -7,6 +7,16 @@
|
|
|
#include "unity.h"
|
|
|
#include "unity_test_utils.h"
|
|
|
#include "esp_heap_caps.h"
|
|
|
+#include "soc/soc_caps.h"
|
|
|
+#include "sdkconfig.h"
|
|
|
+#if CONFIG_IDF_TARGET_ESP32S2
|
|
|
+#include "esp_efuse_rtc_table.h"
|
|
|
+#define esp_efuse_rtc_calib_get_ver() esp_efuse_rtc_table_read_calib_version()
|
|
|
+#elif SOC_ADC_CALIBRATION_V1_SUPPORTED
|
|
|
+#include "esp_efuse_rtc_calib.h"
|
|
|
+#else
|
|
|
+#define esp_efuse_rtc_calib_get_ver() -1 // Not support calibration
|
|
|
+#endif
|
|
|
|
|
|
#define TEST_MEMORY_LEAK_THRESHOLD (600)
|
|
|
|
|
|
@@ -33,5 +43,7 @@ void app_main(void)
|
|
|
printf(" | |/ _ \\/ __| __| / _ \\ | | | | | \n");
|
|
|
printf(" | | __/\\__ \\ |_ / ___ \\| |_| | |___ \n");
|
|
|
printf(" |_|\\___||___/\\__| /_/ \\_\\____/ \\____|\n");
|
|
|
+
|
|
|
+ printf("\nADC eFuse Calibration Version %d\n", esp_efuse_rtc_calib_get_ver());
|
|
|
unity_run_menu();
|
|
|
}
|