logging: make log_backend_std header public
Exported header oftenly used when creating a logging backend that inpects the log 'stream'. Enables use in external Zephyr modules implementing the logging backend interface. Signed-off-by: Emil Hammarstrom <emil.hammarstrom@assaabloy.com>
This commit is contained in:
parent
1807e93697
commit
746ba2dd9c
6 changed files with 16 additions and 5 deletions
|
@ -14,6 +14,13 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Logger backend interface for forwarding to standard backend
|
||||||
|
* @defgroup log_backend_std Logger backend standard interface
|
||||||
|
* @ingroup logger
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
/** @brief Put log message to a standard logger backend.
|
/** @brief Put log message to a standard logger backend.
|
||||||
*
|
*
|
||||||
* @param log_output Log output instance.
|
* @param log_output Log output instance.
|
||||||
|
@ -147,6 +154,10 @@ log_backend_std_sync_hexdump(const struct log_output *const log_output,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
|
@ -8,7 +8,7 @@
|
||||||
#include <logging/log_core.h>
|
#include <logging/log_core.h>
|
||||||
#include <logging/log_msg.h>
|
#include <logging/log_msg.h>
|
||||||
#include <logging/log_output.h>
|
#include <logging/log_output.h>
|
||||||
#include "log_backend_std.h"
|
#include <logging/log_backend_std.h>
|
||||||
#include <SEGGER_RTT.h>
|
#include <SEGGER_RTT.h>
|
||||||
|
|
||||||
#ifndef CONFIG_LOG_BACKEND_RTT_BUFFER_SIZE
|
#ifndef CONFIG_LOG_BACKEND_RTT_BUFFER_SIZE
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <logging/log_backend.h>
|
#include <logging/log_backend.h>
|
||||||
|
#include <logging/log_backend_std.h>
|
||||||
#include <logging/log_output.h>
|
#include <logging/log_output.h>
|
||||||
#include <openthread/platform/logging.h>
|
#include <openthread/platform/logging.h>
|
||||||
#include <openthread/platform/uart.h>
|
#include <openthread/platform/uart.h>
|
||||||
#include <platform-zephyr.h>
|
#include <platform-zephyr.h>
|
||||||
#include "log_backend_std.h"
|
|
||||||
|
|
||||||
#ifndef CONFIG_LOG_BACKEND_SPINEL_BUFFER_SIZE
|
#ifndef CONFIG_LOG_BACKEND_SPINEL_BUFFER_SIZE
|
||||||
#define CONFIG_LOG_BACKEND_SPINEL_BUFFER_SIZE 0
|
#define CONFIG_LOG_BACKEND_SPINEL_BUFFER_SIZE 0
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <logging/log_core.h>
|
#include <logging/log_core.h>
|
||||||
#include <logging/log_msg.h>
|
#include <logging/log_msg.h>
|
||||||
#include <logging/log_output.h>
|
#include <logging/log_output.h>
|
||||||
#include "log_backend_std.h"
|
#include <logging/log_backend_std.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
|
|
||||||
/** The stimulus port from which SWO data is received and displayed */
|
/** The stimulus port from which SWO data is received and displayed */
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <logging/log_core.h>
|
#include <logging/log_core.h>
|
||||||
#include <logging/log_msg.h>
|
#include <logging/log_msg.h>
|
||||||
#include <logging/log_output.h>
|
#include <logging/log_output.h>
|
||||||
#include "log_backend_std.h"
|
#include <logging/log_backend_std.h>
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
#include <drivers/uart.h>
|
#include <drivers/uart.h>
|
||||||
#include <sys/__assert.h>
|
#include <sys/__assert.h>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <logging/log_core.h>
|
#include <logging/log_core.h>
|
||||||
#include <logging/log_msg.h>
|
#include <logging/log_msg.h>
|
||||||
#include <logging/log_output.h>
|
#include <logging/log_output.h>
|
||||||
#include "log_backend_std.h"
|
#include <logging/log_backend_std.h>
|
||||||
#include <xtensa/simcall.h>
|
#include <xtensa/simcall.h>
|
||||||
|
|
||||||
#define CHAR_BUF_SIZE (IS_ENABLED(CONFIG_LOG_IMMEDIATE) ? \
|
#define CHAR_BUF_SIZE (IS_ENABLED(CONFIG_LOG_IMMEDIATE) ? \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue