mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-07 18:20:33 +00:00
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:
@@ -1,5 +1,5 @@
|
||||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
|
||||
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
|
||||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
|
||||
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
|
||||
|
||||
# Basic Console Example (`esp_console_repl`)
|
||||
|
||||
|
||||
@@ -91,7 +91,12 @@ void app_main(void)
|
||||
/* Register commands */
|
||||
esp_console_register_help_command();
|
||||
register_system_common();
|
||||
register_system_sleep();
|
||||
#if SOC_LIGHT_SLEEP_SUPPORTED
|
||||
register_system_light_sleep();
|
||||
#endif
|
||||
#if SOC_DEEP_SLEEP_SUPPORTED
|
||||
register_system_deep_sleep();
|
||||
#endif
|
||||
#if SOC_WIFI_SUPPORTED
|
||||
register_wifi();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user