freeRam.h#
Include dependency graph for freeRam.h:
cross platform freeRam()
- Author
Douglas Quigg (dstroy0 dquigg123@gmail.com)
- Version
1.0
- Date
2022-05-18
- Copyright
Copyright (c) 2022
Functions
-
int freeRam()#
cross platform freeRam().
InputHandler’s cross platform freeRam(). This is a generic representation of how this function works.
Please see your platform’s specific implementation.extern unsigned long _heap_start; extern unsigned long _heap_end; extern char* __brkval; int freeRam() { return (char*)&_heap_end - __brkval; }
- Returns:
The amount of free memory on the heap, in bytes; returns zero if not implemented on your platform.