Merge branch 'bugfix/build_failure_with_heap_task_tracking' into 'master'

Fix build failure if CONFIG_HEAP_TASK_TRACKING enabled

See merge request idf/esp-idf!2315
This commit is contained in:
Ivan Grokhotkov 2018-04-26 15:16:43 +08:00
commit 4083a356a8

View file

@ -63,6 +63,7 @@ inline static void multi_heap_assert(bool condition, const char *format, int lin
__LINE__, (intptr_t)(ADDRESS))
#ifdef CONFIG_HEAP_TASK_TRACKING
#include <freertos/task.h>
#define MULTI_HEAP_BLOCK_OWNER TaskHandle_t task;
#define MULTI_HEAP_SET_BLOCK_OWNER(HEAD) (HEAD)->task = xTaskGetCurrentTaskHandle()
#define MULTI_HEAP_GET_BLOCK_OWNER(HEAD) ((HEAD)->task)