Function to calculate the memory available for malloc

Dependents:   AvailableMemory_HelloWorld MCBBThermostat helloaabbc SP14P1_skeleton

Committer:
segundo
Date:
Sun Nov 07 21:33:56 2010 +0000
Revision:
8:1d4f30a80292
Parent:
7:b4a90cb19332
Child:
9:caba868a4c1a

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
segundo 6:e94f3a11bad7 1 /** \file
segundo 4:be8247f802ad 2 * Return the available memory for a malloc call
segundo 3:9092256004a5 3 */
segundo 0:a98bf0c96bf1 4 #ifndef SEGUNDO_UTILITIES_AVAILABLEMEMORY_H
segundo 0:a98bf0c96bf1 5 #define SEGUNDO_UTILITIES_AVAILABLEMEMORY_H
segundo 6:e94f3a11bad7 6
segundo 0:a98bf0c96bf1 7 namespace segundo {
segundo 0:a98bf0c96bf1 8 namespace Utilities {
segundo 0:a98bf0c96bf1 9
segundo 7:b4a90cb19332 10 /** Return the available memory for a malloc call
segundo 1:d8432d8a5b6d 11 */
segundo 0:a98bf0c96bf1 12 int AvailableMemory();
segundo 1:d8432d8a5b6d 13
segundo 1:d8432d8a5b6d 14 /** Return the available memory for a malloc call
segundo 8:1d4f30a80292 15 * \param resolution Resolution in number of bytes
segundo 8:1d4f30a80292 16 * \param maximum Maximum amount of memory to check
segundo 8:1d4f30a80292 17 * \param disableInterrupts Disable interrupts whilst checking
segundo 1:d8432d8a5b6d 18 */
segundo 0:a98bf0c96bf1 19 int AvailableMemory(int resolution, int maximum, bool disableInterrupts);
segundo 0:a98bf0c96bf1 20
segundo 0:a98bf0c96bf1 21 } // namespace Utilities
segundo 0:a98bf0c96bf1 22 } // namespace segundo
segundo 0:a98bf0c96bf1 23
segundo 0:a98bf0c96bf1 24 using namespace segundo::Utilities;
segundo 0:a98bf0c96bf1 25
segundo 0:a98bf0c96bf1 26 #endif // SEGUNDO_UTILITIES_AVAILABLEMEMORY_H