Add PSRAM

This commit is contained in:
2025-07-08 03:34:27 -04:00
parent 9987a63af5
commit 885f31aeb2
9 changed files with 135 additions and 79 deletions

View File

@@ -8,6 +8,8 @@
#include <memory>
#include <MessagingInterface.h>
#include "esp_log.h"
void LoopManager::control_loop() {
const auto messaging_interface = std::make_unique<MessagingInterface>();
@@ -15,6 +17,10 @@ void LoopManager::control_loop() {
while (true) {
messaging_interface->recv(buffer, 512, 0, 1);
std::cout << buffer << std::endl;
ESP_LOGI("MEM", "Free internal RAM: %d", heap_caps_get_free_size(MALLOC_CAP_8BIT));
ESP_LOGI("MEM", "Free PSRAM: %d", heap_caps_get_free_size(MALLOC_CAP_SPIRAM));
}
}