Add xPortGetFreeHeapSize() function.

This commit is contained in:
Richard Barry 2009-10-05 11:16:38 +00:00
parent 9468e36040
commit e90ba3e57f
5 changed files with 47 additions and 0 deletions

View file

@ -99,6 +99,8 @@ only for ports that are using the MPU. */
#define pvPortMalloc MPU_pvPortMalloc
#define vPortFree MPU_vPortFree
#define xPortGetFreeHeapSize MPU_xPortGetFreeHeapSize
#define vPortInitialiseBlocks MPU_vPortInitialiseBlocks
/* Remove the privileged function macro. */
#define PRIVILEGED_FUNCTION

View file

@ -350,6 +350,7 @@ extern "C" {
void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
void vPortFree( void *pv ) PRIVILEGED_FUNCTION;
void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION;
size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION;
/*
* Setup the hardware ready for the scheduler to take control. This generally