mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
Update build system, add cspot service option
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
idf_component_register(SRCS operator.cpp tools.c
|
||||
idf_component_register(SRCS operator.cpp tools.c trace.c
|
||||
REQUIRES esp_common pthread
|
||||
INCLUDE_DIRS .
|
||||
)
|
||||
|
||||
@@ -32,6 +32,15 @@ extern "C" {
|
||||
|
||||
#define ESP_LOG_DEBUG_EVENT(tag,e) ESP_LOGD(tag,"evt: " e)
|
||||
|
||||
#ifdef ENABLE_MEMTRACE
|
||||
void memtrace_print_delta(const char * msg, const char * tag, const char * function);
|
||||
#define MEMTRACE_PRINT_DELTA() memtrace_print_delta(NULL,TAG,__FUNCTION__);
|
||||
#define MEMTRACE_PRINT_DELTA_MESSAGE(x) memtrace_print_delta(x,TAG,__FUNCTION__);
|
||||
#else
|
||||
#define MEMTRACE_PRINT_DELTA()
|
||||
#define MEMTRACE_PRINT_DELTA_MESSAGE(x) ESP_LOGD(TAG,"%s",x);
|
||||
#endif
|
||||
|
||||
#ifndef FREE_AND_NULL
|
||||
#define FREE_AND_NULL(x) if(x) { free(x); x=NULL; }
|
||||
#endif
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "freertos/task.h"
|
||||
#include "esp_event.h"
|
||||
#include "trace.h"
|
||||
#include "tools.h"
|
||||
|
||||
|
||||
static const char TAG[] = "TRACE";
|
||||
|
||||
Reference in New Issue
Block a user