]> granicus.if.org Git - esp-idf/commitdiff
soc/rtc: run 32k XTAL startup test only in PSRAM config
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 26 Mar 2018 02:14:13 +0000 (10:14 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 26 Mar 2018 02:14:13 +0000 (10:14 +0800)
PSRAM tests run on ESP-WROVER-KIT boards, which have the 32k XTAL
installed.

components/soc/esp32/test/test_rtc_clk.c

index b8f7b3109bc60c13a449e39a1acfcad33755412e..ee076e04d5effbc9b136b9a60c10eddb1d9fd0ec 100644 (file)
@@ -151,6 +151,9 @@ void stop_rtc_external_quartz(){
     gpio_output_set_high(0, 0, 0, mask_32 | mask_33); // disable pins
 }
 
+#ifdef CONFIG_SPIRAM_SUPPORT
+// PSRAM tests run on ESP-WROVER-KIT boards, which have the 32k XTAL installed.
+// Other tests may run on DevKitC boards, which don't have a 32k XTAL.
 TEST_CASE("Test starting external RTC quartz", "[rtc_clk]")
 {
     int i = 0, fail = 0;
@@ -182,3 +185,4 @@ TEST_CASE("Test starting external RTC quartz", "[rtc_clk]")
         printf("Test passed successfully\n");
     }
 }
+#endif // CONFIG_SPIRAM_SUPPORT