summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/fatfs/src/option/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/fatfs/src/option/syscall.c')
-rw-r--r--cc3200/fatfs/src/option/syscall.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc3200/fatfs/src/option/syscall.c b/cc3200/fatfs/src/option/syscall.c
index 1bb1ec3798..1ada97bd43 100644
--- a/cc3200/fatfs/src/option/syscall.c
+++ b/cc3200/fatfs/src/option/syscall.c
@@ -3,8 +3,6 @@
/* (C)ChaN, 2014 */
/*------------------------------------------------------------------------*/
-#include "py/mpconfig.h"
-#include MICROPY_HAL_H
#include "ff.h"
@@ -134,7 +132,7 @@ void* ff_memalloc ( /* Returns pointer to the allocated memory block */
UINT msize /* Number of bytes to allocate */
)
{
- return malloc(msize); /* Allocate a new memory block with POSIX API */
+ return pvPortMalloc(msize); /* Allocate a new memory block with POSIX API */
}
@@ -146,7 +144,7 @@ void ff_memfree (
void* mblock /* Pointer to the memory block to free */
)
{
- free(mblock); /* Discard the memory block with POSIX API */
+ vPortFree(mblock); /* Discard the memory block with POSIX API */
}
#endif