| #include <stdlib.h> |
| |
| /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining |
| all the API functions to use the MPU wrappers. That should only be done when |
| task.h is included from an application file. */ |
| #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
| |
| #include "FreeRTOS.h" |
| #include "task.h" |
| |
| #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
| |
| |
| void *pvPortMalloc( size_t xWantedSize ) |
| { |
| #if( configUSE_MALLOC_FAILED_HOOK == 1 ) |
| { |
| extern void vApplicationMallocFailedHook( void ); |
| vApplicationMallocFailedHook(); |
| } |
| #endif |
| |
| configASSERT( NULL ); |
| |
| return NULL; |
| } |
| /*-----------------------------------------------------------*/ |
| |
| void vPortFree( void *pv ) |
| { |
| /* Force an assert as it is invalid to call this function. */ |
| configASSERT( pv == NULL ); |
| } |
| |