From ab8392fb8fd8c38eab871504cfa661f9918a8fbf Mon Sep 17 00:00:00 2001 From: Wentong Wu Date: Wed, 6 May 2020 21:10:08 +0800 Subject: [PATCH] logging: syst: enable protocol timestamp in SyS-T message Enable protocol timestamp in SyS-T message. Signed-off-by: Wentong Wu --- subsys/logging/log_output_syst.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/logging/log_output_syst.c b/subsys/logging/log_output_syst.c index bd44c19930f..d4cd6fbde61 100644 --- a/subsys/logging/log_output_syst.c +++ b/subsys/logging/log_output_syst.c @@ -129,6 +129,10 @@ static void platform_handle_init(struct mipi_syst_handle *systh) #if defined(MIPI_SYST_PCFG_LENGTH_FIELD) MIPI_SYST_ENABLE_HANDLE_LENGTH(systh, 1); #endif + +#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) + MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(systh, 1); +#endif } static void platform_handle_release(struct mipi_syst_handle *systh)