mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-29 05:38:42 +00:00
feat(log): Updates timestamp APIs
This commit is contained in:

committed by
BOT

parent
bc46512ad5
commit
b994f33f51
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user