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:
- 9:caba868a4c1a
- Parent:
- 8:1d4f30a80292
- Child:
- 10:7474d5df69c2
File content as of revision 9:caba868a4c1a:
/** \file * Return the available memory for a malloc call */ #ifndef SEGUNDO_UTILITIES_AVAILABLEMEMORY_H #define SEGUNDO_UTILITIES_AVAILABLEMEMORY_H /** * Segundo Equipo */ namespace segundo { /** * A collection of utilities */ 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