examples: re-enable console examples for C2, C6, H2

- Split the sleep-related system commands into a separate file
- Don't compile that file and don't register sleep commands for H2 yet
- Exclude Wi-Fi commands if the chip doesn't have Wi-Fi
This commit is contained in:
Ivan Grokhotkov
2023-03-24 13:50:48 +01:00
parent 4f16f201af
commit b52607af71
9 changed files with 514 additions and 471 deletions

View File

@@ -79,8 +79,11 @@ void app_main(void)
/* Register commands */
esp_console_register_help_command();
register_system();
register_system_common();
register_system_sleep();
#if SOC_WIFI_SUPPORTED
register_wifi();
#endif
register_nvs();
#if defined(CONFIG_ESP_CONSOLE_UART_DEFAULT) || defined(CONFIG_ESP_CONSOLE_UART_CUSTOM)