7 #include <esp_heap_caps.h> 8 #include <esp_idf_version.h> 13 static const char *
const TAG =
"psram";
15 void PsramComponent::dump_config() {
18 bool available = heap_caps_get_free_size(MALLOC_CAP_SPIRAM) > 0;
20 ESP_LOGCONFIG(TAG,
"PSRAM:");
21 ESP_LOGCONFIG(TAG,
" Available: %s", YESNO(available));
22 #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0) 24 ESP_LOGCONFIG(TAG,
" Size: %d KB", heap_caps_get_total_size(MALLOC_CAP_SPIRAM) / 1024);
Implementation of SPI Controller mode.