feat(soc): Add soc_caps macros for sleep support
- modify console example to use the new SOC_LIGHT_SLEEP_SUPPORTED and SOC_DEEP_SLEEP_SUPPORTED macros when registering sleep commands - remove exclusion of esp32p4 in basic and advanced example in .build-test-rules.yml - replace exclusion of esp32p4 for deep and light sleep tests with newly introduced macro - remove the temporary disable check for esp32p4 and uses the SOC_LIGHT_SLEEP_SUPPORTED maccro instead.
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
#include "unity.h"
|
||||
#include "esp_rom_sys.h"
|
||||
#include "esp_sleep.h"
|
||||
#include "soc/soc_caps.h"
|
||||
|
||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32P4) // TODO Light Sleep support - IDF-7528
|
||||
#if SOC_LIGHT_SLEEP_SUPPORTED
|
||||
|
||||
static void timer_cb1(void *arg)
|
||||
{
|
||||
@@ -53,4 +54,4 @@ TEST_CASE("Test the periodic timer does not handle lost events during light slee
|
||||
TEST_ESP_OK(esp_timer_delete(periodic_timer));
|
||||
}
|
||||
|
||||
#endif //#!TEMPORARY_DISABLED_FOR_TARGETS(ESP32P4)
|
||||
#endif // SOC_SLEEP_SUPPORTED
|
||||
|
||||
Reference in New Issue
Block a user