mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 13:06:54 +03:00
* Migration to PlatformIO 6.1.0 * Disable RMTMEM usage as it is no longer allowed -> Smart LEDs not functional! * moved miniz into subfolder of jomjol_fileserver_ota, else it does not build anymore. * cleanup * fix leading NaN (#2310) * Migration to PlatformIO 6.1.0 * Disable RMTMEM usage as it is no longer allowed -> Smart LEDs not functional! * moved miniz into subfolder of jomjol_fileserver_ota, else it does not build anymore. * cleanup * Task watchdog has new config name * Fix return value check. It must be something else than ESP_FAIL, but it does not need to be ESP_OK! * add missing strucures to work around new RMTMEM restriction (untested) --------- Co-authored-by: CaCO3 <caco@ruinelli.ch>
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "../../include/defines.h"
|
|
|
|
#ifdef DEBUG_ENABLE_SYSINFO
|
|
|
|
#ifndef ESP_SYS_H
|
|
#define ESP_SYS_H
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
// Device libraries (ESP-IDF)
|
|
#include <esp_system.h>
|
|
#include <esp_spi_flash.h>
|
|
#include <esp_heap_caps.h>
|
|
|
|
// for esp_psram_get_size
|
|
extern "C" {
|
|
#include "esp_psram.h"
|
|
#ifdef USE_HIMEM_IF_AVAILABLE
|
|
#include <esp32/himem.h>
|
|
#endif
|
|
}
|
|
|
|
|
|
|
|
void Restart();
|
|
char *GetChipModel();
|
|
uint8_t GetChipCoreCount();
|
|
uint16_t GetChipRevision();
|
|
uint32_t GetChipfeatures();
|
|
uint32_t GetFreeHeap();
|
|
uint32_t GetLeastHeapFreeSinceBoot();
|
|
|
|
std::string get_device_info();
|
|
|
|
size_t getFreeMemoryInternal();
|
|
size_t getFreeMemorySPIRAM();
|
|
size_t getLargestFreeBlockInternal();
|
|
size_t getLargestFreeBlockSPIRAM();
|
|
size_t getMinEverFreeMemInternal();
|
|
size_t getMinEverFreeMemSPIRAM();
|
|
#ifdef USE_HIMEM_IF_AVAILABLE
|
|
size_t getHimemTotSpace();
|
|
size_t getHimemFreeSpace();
|
|
size_t getHimemReservedArea();
|
|
#endif
|
|
|
|
|
|
#endif //ESP_SYS_H
|
|
|
|
#endif // DEBUG_ENABLE_SYSINFO
|