freeRAM func
This commit is contained in:
5
code/Arduino/freeRAM.c
Normal file
5
code/Arduino/freeRAM.c
Normal file
@ -0,0 +1,5 @@
|
||||
int freeRAM() {
|
||||
extern int __heap_start, *__brkval;
|
||||
int v;
|
||||
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
|
||||
}
|
Reference in New Issue
Block a user