File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 2121#include " Esp.h"
2222#include " esp_sleep.h"
2323#include " spi_flash_mmap.h"
24+ #include " esp_idf_version.h"
2425#include < memory>
2526#include < soc/soc.h>
2627#include < esp_partition.h>
@@ -304,6 +305,11 @@ const char *EspClass::getChipModel(void) {
304305 case CHIP_ESP32C6: return " ESP32-C6" ;
305306 case CHIP_ESP32H2: return " ESP32-H2" ;
306307 case CHIP_ESP32P4: return " ESP32-P4" ;
308+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
309+ case CHIP_ESP32C5: return " ESP32-C5" ;
310+ case CHIP_ESP32C61: return " ESP32-C61" ;
311+ case CHIP_ESP32H21: return " ESP32-H21" ;
312+ #endif
307313 default : return " UNKNOWN" ;
308314 }
309315#endif
Original file line number Diff line number Diff line change @@ -88,6 +88,11 @@ static void printChipInfo(void) {
8888 case CHIP_ESP32C6: chip_report_printf (" ESP32-C6\n " ); break ;
8989 case CHIP_ESP32H2: chip_report_printf (" ESP32-H2\n " ); break ;
9090 case CHIP_ESP32P4: chip_report_printf (" ESP32-P4\n " ); break ;
91+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
92+ case CHIP_ESP32C5: chip_report_printf (" ESP32-C5\n " ); break ;
93+ case CHIP_ESP32C61: chip_report_printf (" ESP32-C61\n " ); break ;
94+ case CHIP_ESP32H21: chip_report_printf (" ESP32-H21\n " ); break ;
95+ #endif
9196 default : chip_report_printf (" Unknown %d\n " , info.model ); break ;
9297 }
9398 printPkgVersion ();
You can’t perform that action at this time.
0 commit comments