LSH-Core
A robust C++ framework for Arduino-based home automation nodes
Loading...
Searching...
No Matches
memory.hpp
Go to the documentation of this file.
1
21#ifndef LSHCORE_UTIL_DEBUG_MEMORY_HPP
22#define LSHCORE_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{
37#endif // __cplusplus
38
39 auto freeMemory() -> size_t;
40
41#ifdef __cplusplus
42}
43#endif // __cplusplus
44
45#endif // LSHCORE_UTIL_DEBUG_MEMORY_HPP