mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'contrib/github_pr_14593' into 'master'
feat(advanced_console): Add ESP32-P4 ESP32-C5 model support in 'version' command output (GitHub PR) Closes IDFGH-13722 See merge request espressif/esp-idf!33565
This commit is contained in:
commit
453850eff2
@ -81,6 +81,12 @@ static int get_version(int argc, char **argv)
|
|||||||
case CHIP_ESP32C2:
|
case CHIP_ESP32C2:
|
||||||
model = "ESP32-C2";
|
model = "ESP32-C2";
|
||||||
break;
|
break;
|
||||||
|
case CHIP_ESP32P4:
|
||||||
|
model = "ESP32-P4";
|
||||||
|
break;
|
||||||
|
case CHIP_ESP32C5:
|
||||||
|
model = "ESP32-C5";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
model = "Unknown";
|
model = "Unknown";
|
||||||
break;
|
break;
|
||||||
@ -153,7 +159,7 @@ static void register_free(void)
|
|||||||
ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) );
|
ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 'heap' command prints minumum heap size */
|
/* 'heap' command prints minimum heap size */
|
||||||
static int heap_size(int argc, char **argv)
|
static int heap_size(int argc, char **argv)
|
||||||
{
|
{
|
||||||
uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_DEFAULT);
|
uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_DEFAULT);
|
||||||
|
Loading…
Reference in New Issue
Block a user