Dual CANbus monitor and instrumentation cluster supporting ILI9341 display controller

Dependencies:   SPI_TFTx2_ILI9341 TOUCH_TFTx2_ILI9341 TFT_fonts mbed

Fork of CANary by Tick Tock

Committer:
TickTock
Date:
Sat May 17 13:53:16 2014 +0000
Revision:
189:439e113fec1c
Parent:
1:9dcd70c32180
renamed libraries to avoid conflict with originals

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TickTock 1:9dcd70c32180 1
TickTock 1:9dcd70c32180 2 #include "mbedUtils.h"
TickTock 1:9dcd70c32180 3
TickTock 1:9dcd70c32180 4 #include "mbed.h"
TickTock 1:9dcd70c32180 5
TickTock 1:9dcd70c32180 6
TickTock 1:9dcd70c32180 7 int getFreeMemory()
TickTock 1:9dcd70c32180 8 {
TickTock 1:9dcd70c32180 9 // Return the difference between the heap pointer and stack pointer.
TickTock 1:9dcd70c32180 10 char stackVar = '\0';
TickTock 1:9dcd70c32180 11 char* stackPtr = &stackVar;
TickTock 1:9dcd70c32180 12 char* heapPtr = (char*)malloc(sizeof(char));
TickTock 1:9dcd70c32180 13 int memFree = stackPtr - heapPtr;
TickTock 1:9dcd70c32180 14 free(heapPtr);
TickTock 1:9dcd70c32180 15 return memFree;
TickTock 1:9dcd70c32180 16 }