| 123456789101112131415161718192021222324252627282930313233 |
- #include "stddef.h"
- #include "FreeRTOS.h"
- #include "task.h"
- #ifdef __CC_ARM
- /* avoid the heap and heap-using library functions supplied by arm */
- #pragma import(__use_no_heap)
- #endif /* __CC_ARM */
- void *malloc(size_t n)
- {
- return pvPortMalloc(n);
- }
- void *realloc(void *rmem, size_t newsize)
- {
- return pvPortRealloc(rmem,newsize);
- }
- void *calloc(size_t nelem,size_t elsize)
- {
- return pvPortCalloc(nelem,elsize);
- }
- void free(void *rmem)
- {
- vPortFree(rmem);
- }
|