freeRam.h#

Include dependency graph for freeRam.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "1" [label="src/config/utility/freeRam.h" tooltip="src/config/utility/freeRam.h" fillcolor="#BFBFBF"]
    "2" [label="Arduino.h" tooltip="Arduino.h"]
    "1" -> "2" [dir=forward tooltip="include"]
}

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.

extern unsigned long _heap_start;
extern unsigned long _heap_end;
extern char* __brkval;
int freeRam() { return (char*)&_heap_end - __brkval; }
Please see your platform’s specific implementation.

freeRam src

Returns:

The amount of free memory on the heap, in bytes; returns zero if not implemented on your platform.

Variables

unsigned long _heap_start#

pointer to heap start

unsigned long _heap_end#

pointer to heap end

char *__brkval#

pointer to current memory position