esp-open-rtos/FreeRTOS/Source/portable/esp8266/sdk_compat.c
Angus Gratton 49268a33e1 Link against newlib from esp-open-sdk's libcirom, replace FreeRTOS heap management.
Compiles and runs, expects xtensa lock.c patch in newlib (will still run
otherwise but malloc/free and other functions will be non-memory-safe...)
2015-06-16 14:20:24 +10:00

14 lines
324 B
C

/*
* Wrappers for functions called by binary espressif libraries
*
* Part of esp-open-rtos
* Copyright (C) 2015 Superhouse Automation Pty Ltd
* BSD Licensed as described in the file LICENSE
*/
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
void *zalloc(size_t nbytes) {
return calloc(1, nbytes);
}