first commit
Some checks failed
Build Boards / Determine variants to build (push) Has been cancelled
Build Boards / Build ${{ matrix.full_name }} (push) Has been cancelled

This commit is contained in:
0Xiao0
2026-06-15 16:47:28 +08:00
commit 7b5da81892
880 changed files with 37359 additions and 0 deletions

23
main/system_info.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef _SYSTEM_INFO_H_
#define _SYSTEM_INFO_H_
#include <string>
#include <esp_err.h>
#include <freertos/FreeRTOS.h>
class SystemInfo {
public:
static size_t GetFlashSize();
static size_t GetMinimumFreeHeapSize();
static size_t GetFreeHeapSize();
static std::string GetMacAddress();
static std::string GetChipModelName();
static std::string GetUserAgent();
static esp_err_t PrintTaskCpuUsage(TickType_t xTicksToWait);
static void PrintTaskList();
static void PrintHeapStats();
static void PrintPmLocks();
};
#endif // _SYSTEM_INFO_H_