diff --git a/readme.txt b/readme.txt index 16232a6..7fff615 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ To enable asserts define _RTLIBC_ASSERT_ -To enable RTLIBC malloc() define _RTLIBC_MALLOC_ -To enable FreeRTOS malloc() define _RTLIBC_MALLOC_FREERTOS_ - The following functions are weak and can be defined by the user: void rtlibc_abort_handler(void); + void rtlibc_malloc_failed_handler(void); +void* malloc(size_t size); +void free(void *p); diff --git a/src/stdlib.c b/src/stdlib.c index 2fb9b5c..90b9839 100644 --- a/src/stdlib.c +++ b/src/stdlib.c @@ -7,7 +7,8 @@ #include -__attribute__((weak)) void rtlibc_abort_handler(void) +__attribute__((weak)) +void rtlibc_abort_handler(void) { }