NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
esp_nimble_mem.h
1/*
2 * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef __ESP_NIMBLE_MEM_H__
8#define __ESP_NIMBLE_MEM_H__
9
10#include <stdlib.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16void *nimble_platform_mem_malloc(size_t size);
17void *nimble_platform_mem_calloc(size_t n, size_t size);
18void nimble_platform_mem_free(void *ptr);
19
20#ifndef ESP_PLATFORM
21#define nimble_platform_mem_malloc malloc
22#define nimble_platform_mem_calloc calloc
23#define nimble_platform_mem_free free
24#endif
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif /* __ESP_NIMBLE_MEM_H__ */