logging: mipi_syst: Add CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP
This adds user configurable CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP Kconfig option to use it for macro MIPI_SYST_PCFG_ENABLE_TIMESTAMP. Moving macro definition of MIPI_SYST_PCFG_ENABLE_TIMESTAMP from mipi-sys-t library to platform.h which defaulted to undef. CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP gives flexibility to users when needn't use mipi-sys-t protocol timestamp. Signed-off-by: Fang Huang <fang.huang@intel.com>
This commit is contained in:
parent
7ef10d0f71
commit
37305fa06b
2 changed files with 10 additions and 1 deletions
|
|
@ -38,6 +38,11 @@ config LOG_MIPI_SYST_USE_CATALOG
|
||||||
help
|
help
|
||||||
Use MIPI Sys-T Catalog for logging instead of plain text.
|
Use MIPI Sys-T Catalog for logging instead of plain text.
|
||||||
|
|
||||||
|
config LOG_MIPI_SYST_DISABLE_TIMESTAMP
|
||||||
|
bool "Disable MIPI Sys-T protocol timestamp"
|
||||||
|
help
|
||||||
|
Remove the timestamp from the MIPI Sys-T protocol.
|
||||||
|
|
||||||
config LOG_MIPI_SYST_CATALOG_ARGS_BUFFER_SIZE
|
config LOG_MIPI_SYST_CATALOG_ARGS_BUFFER_SIZE
|
||||||
int "Size of temporary arguments buffer when using Sys-T Catalog"
|
int "Size of temporary arguments buffer when using Sys-T Catalog"
|
||||||
depends on LOG_MIPI_SYST_USE_CATALOG
|
depends on LOG_MIPI_SYST_USE_CATALOG
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019 Intel Corporation
|
* Copyright (c) 2019 - 2023 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -13,6 +13,10 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP)
|
||||||
|
#undef MIPI_SYST_PCFG_ENABLE_TIMESTAMP
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE CONFIG_LOG_MIPI_SYST_ARGS_BUFFER_SIZE
|
#define MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE CONFIG_LOG_MIPI_SYST_ARGS_BUFFER_SIZE
|
||||||
|
|
||||||
#if defined(CONFIG_MIPI_SYST_STP)
|
#if defined(CONFIG_MIPI_SYST_STP)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue