forked from http://developer.mbed.org/users/segundo/code/AvailableMemory/
Dependents: Utility_AvailableMemory_blinky
Fork of AvailableMemory by
AvailableMemory.h
- Committer:
- segundo
- Date:
- 2010-11-07
- Revision:
- 7:b4a90cb19332
- Parent:
- 6:e94f3a11bad7
- Child:
- 8:1d4f30a80292
File content as of revision 7:b4a90cb19332:
/** \file * Return the available memory for a malloc call */ #ifndef SEGUNDO_UTILITIES_AVAILABLEMEMORY_H #define SEGUNDO_UTILITIES_AVAILABLEMEMORY_H namespace segundo { namespace Utilities { /** Return the available memory for a malloc call */ int AvailableMemory(); /** Return the available memory for a malloc call * @param resolution Resolution in number of bytes * @param maximum Maximum amount of memory to check * @param disableInterrupts Disable interrupts whilst checking */ int AvailableMemory(int resolution, int maximum, bool disableInterrupts); } // namespace Utilities } // namespace segundo using namespace segundo::Utilities; #endif // SEGUNDO_UTILITIES_AVAILABLEMEMORY_H