MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getSpiFree

Function getSpiFree

Tactility/Source/app/systeminfo/SystemInfo.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static size_t getSpiFree() {
46#ifdef ESP_PLATFORM
47 return heap_caps_get_free_size(MALLOC_CAP_SPIRAM);
48#else
49 return 4096 * 1024;
50#endif
51}
52
53static size_t getSpiTotal() {
54#ifdef ESP_PLATFORM

Callers 2

updateMemoryMethod · 0.85
updatePsramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected