zephyr/include/logging/log_backend_uart.h
Krzysztof Chruściński bbeef4155c logging: subsystem major redesign
Adding new implementation of logging subsystem. New features
includes: support for multiple backends, improving performance
by deferring log processing to the known context, adding
timestamps and logs filtering options (compile time, runtime,
module level, instance level). Console backend added as the
example backend.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2018-06-29 10:16:45 +02:00

32 lines
554 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LOG_BACKEND_UART_H
#define LOG_BACKEND_UART_H
#include <logging/log_backend.h>
#ifdef __cplusplus
extern "C" {
#endif
extern const struct log_backend_api log_backend_uart_api;
/**
* @brief UART backend definition
*
* @param _name Name of the instance.
*/
#define LOG_BACKEND_UART_DEFINE(_name) \
LOG_BACKEND_DEFINE(_name, log_backend_uart_api)
#ifdef __cplusplus
}
#endif
void log_backend_uart_init(void);
#endif /* LOG_BACKEND_UART_H */