This commit is contained in:
11
src/tools/log.h
Normal file
11
src/tools/log.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
#define LOG(LEVEL, FMT, ...) \
|
||||
do { \
|
||||
logger.log(0, LEVEL, "[Core: %i][Task: %s][%s] " FMT, \
|
||||
xPortGetCoreID(), \
|
||||
pcTaskGetName(xTaskGetCurrentTaskHandle()), \
|
||||
__FUNCTION__, \
|
||||
##__VA_ARGS__); \
|
||||
} while (0)
|
||||
Reference in New Issue
Block a user