mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-06-25 01:11:39 +02:00
refactor: replaced heap mock with Linux-compatible heap component
This commit is contained in:
committed by
Rocha Euripedes
parent
d27bd520b2
commit
8b0b43efa8
@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.16)
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS mqtt main)
|
||||
list(APPEND EXTRA_COMPONENT_DIRS
|
||||
"mocks/heap/"
|
||||
"$ENV{IDF_PATH}/tools/mocks/esp_hw_support/"
|
||||
"$ENV{IDF_PATH}/tools/mocks/freertos/"
|
||||
"$ENV{IDF_PATH}/tools/mocks/esp_timer/"
|
||||
|
@ -1,4 +0,0 @@
|
||||
idf_component_get_property(original_heap_dir heap COMPONENT_OVERRIDEN_DIR)
|
||||
|
||||
idf_component_register(SRCS heap_mock.c
|
||||
INCLUDE_DIRS "${original_heap_dir}/include")
|
@ -1,11 +0,0 @@
|
||||
#include "esp_heap_caps.h"
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
void *heap_caps_calloc(size_t n, size_t size, uint32_t caps) {
|
||||
(void)caps;
|
||||
return calloc(n, size);
|
||||
|
||||
}
|
Reference in New Issue
Block a user