mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
22 lines
339 B
C
22 lines
339 B
C
|
/*
|
||
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
#include "esp_openthread.h"
|
||
|
|
||
|
#include "openthread/platform/memory.h"
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void *otPlatCAlloc(size_t num, size_t size)
|
||
|
{
|
||
|
return calloc(num, size);
|
||
|
}
|
||
|
|
||
|
void otPlatFree(void *ptr)
|
||
|
{
|
||
|
free(ptr);
|
||
|
}
|