LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
memory.hpp
Go to the documentation of this file.
1
21#ifndef LSH_CORE_UTIL_DEBUG_MEMORY_HPP
22#define LSH_CORE_UTIL_DEBUG_MEMORY_HPP
23
24#if (ARDUINO >= 100)
25#include <Arduino.h>
26#else
27#include <WProgram.h>
28#endif // (ARDUINO >= 100)
29
30// MemoryFree library based on code posted here:
31// https://forum.arduino.cc/index.php?topic=27536.msg204024#msg204024
32// Extended by Matthew Murdoch to include walking of the free list.
33
34#ifdef __cplusplus
35extern "C" {
36#endif // __cplusplus
37
38auto freeMemory() -> size_t;
39
40#ifdef __cplusplus
41}
42#endif // __cplusplus
43
44#endif // LSH_CORE_UTIL_DEBUG_MEMORY_HPP
auto freeMemory() -> size_t
Estimate the amount of free SRAM currently available on the MCU.
Definition memory.cpp:71