From 48d55e22e763e7361719c732d85b7961dc47327e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 26 Mar 2018 10:14:13 +0800 Subject: [PATCH] soc/rtc: run 32k XTAL startup test only in PSRAM config PSRAM tests run on ESP-WROVER-KIT boards, which have the 32k XTAL installed. --- components/soc/esp32/test/test_rtc_clk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/soc/esp32/test/test_rtc_clk.c b/components/soc/esp32/test/test_rtc_clk.c index b8f7b3109b..ee076e04d5 100644 --- a/components/soc/esp32/test/test_rtc_clk.c +++ b/components/soc/esp32/test/test_rtc_clk.c @@ -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