Unverified Commit 6244d9a4 authored by Xylopyrographer's avatar Xylopyrographer Committed by GitHub

feat: Print chip features bitfield (#10080)

Prints the value of the chip features bitfield to printChipInfo() to facilitate debugging.
Co-authored-by: default avatarLucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
parent ad5aaf86
...@@ -98,6 +98,7 @@ static void printChipInfo(void) { ...@@ -98,6 +98,7 @@ static void printChipInfo(void) {
rtc_clk_cpu_freq_get_config(&conf); rtc_clk_cpu_freq_get_config(&conf);
chip_report_printf(" CPU Frequency : %lu MHz\n", conf.freq_mhz); chip_report_printf(" CPU Frequency : %lu MHz\n", conf.freq_mhz);
chip_report_printf(" XTAL Frequency : %d MHz\n", rtc_clk_xtal_freq_get()); chip_report_printf(" XTAL Frequency : %d MHz\n", rtc_clk_xtal_freq_get());
chip_report_printf(" Features Bitfield : %#010x\n", info.features);
chip_report_printf(" Embedded Flash : %s\n", (info.features & CHIP_FEATURE_EMB_FLASH) ? "Yes" : "No"); chip_report_printf(" Embedded Flash : %s\n", (info.features & CHIP_FEATURE_EMB_FLASH) ? "Yes" : "No");
chip_report_printf(" Embedded PSRAM : %s\n", (info.features & CHIP_FEATURE_EMB_PSRAM) ? "Yes" : "No"); chip_report_printf(" Embedded PSRAM : %s\n", (info.features & CHIP_FEATURE_EMB_PSRAM) ? "Yes" : "No");
chip_report_printf(" 2.4GHz WiFi : %s\n", (info.features & CHIP_FEATURE_WIFI_BGN) ? "Yes" : "No"); chip_report_printf(" 2.4GHz WiFi : %s\n", (info.features & CHIP_FEATURE_WIFI_BGN) ? "Yes" : "No");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment