Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SPI_TFTx2 SPI_TFTx2_ILI9341 TFT_fonts TOUCH_TFTx2 mbed
Fork of CANary_9341 by
mbedUtils.cpp
00001 00002 #include "mbedUtils.h" 00003 00004 #include "mbed.h" 00005 00006 00007 int getFreeMemory() 00008 { 00009 // Return the difference between the heap pointer and stack pointer. 00010 char stackVar = '\0'; 00011 char* stackPtr = &stackVar; 00012 char* heapPtr = (char*)malloc(sizeof(char)); 00013 int memFree = stackPtr - heapPtr; 00014 free(heapPtr); 00015 return memFree; 00016 }
Generated on Thu Jul 14 2022 20:47:26 by
1.7.2
