forked from http://developer.mbed.org/users/segundo/code/AvailableMemory/

Dependents:   Utility_AvailableMemory_blinky

Fork of AvailableMemory by Segundo Equipo

AvailableMemory.h

Committer:
segundo
Date:
2010-11-07
Revision:
1:d8432d8a5b6d
Parent:
0:a98bf0c96bf1
Child:
2:5dd69c9259a0

File content as of revision 1:d8432d8a5b6d:

#ifndef SEGUNDO_UTILITIES_AVAILABLEMEMORY_H
#define SEGUNDO_UTILITIES_AVAILABLEMEMORY_H

namespace segundo {
namespace Utilities {

/** Return the available memory for a malloc call (to the nearest 256 bytes)
 */
int AvailableMemory();

/** Return the available memory for a malloc call
 *
 * @param resolution A normalised number 0.0-1.0 to represent the full range.
 * @param maximum A normalised number 0.0-1.0 to represent the full range.
 * @param disableInterrupts A normalised number 0.0-1.0 to represent the full range.
 */
int AvailableMemory(int resolution, int maximum, bool disableInterrupts);

} // namespace Utilities
} // namespace segundo

using namespace segundo::Utilities;

#endif // SEGUNDO_UTILITIES_AVAILABLEMEMORY_H