feat(log): Updates timestamp APIs

This commit is contained in:
Konstantin Kondrashov
2024-09-06 16:47:12 +03:00
committed by BOT
parent bc46512ad5
commit b994f33f51
15 changed files with 110 additions and 54 deletions

View File

@@ -7,11 +7,22 @@
#pragma once
#include <stdint.h>
#include "esp_log_config.h"
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
/** @cond */
// Determines whether esp_log() includes code to handle timestamp.
#if (!BOOTLOADER_BUILD && CONFIG_LOG_TIMESTAMP_SUPPORT) || (BOOTLOADER_BUILD && CONFIG_BOOTLOADER_LOG_TIMESTAMP_SUPPORT)
#define ESP_LOG_SUPPORT_TIMESTAMP (1)
#else
#define ESP_LOG_SUPPORT_TIMESTAMP (0)
#endif
/** @endcond */
/**
* @brief Function which returns timestamp to be used in log output
*