1 /* 2 * Copyright 2020 NXP 3 * All rights reserved. 4 * 5 * 6 * SPDX-License-Identifier: BSD-3-Clause 7 * 8 */ 9 10 #ifndef __FSL_COMPONENT_LOG_BACKEND_DEBUGCONSOLE_H__ 11 #define __FSL_COMPONENT_LOG_BACKEND_DEBUGCONSOLE_H__ 12 13 #include "fsl_common.h" 14 15 /* 16 * Log backend debug console usage: 17 * Since, the multiple backend feature is supported by log component, the 18 * backend should be initialized individually in application by calling 19 * backend initialization function (for example, 20 * LOG_InitBackendDebugconsole id the backend of log component is debug 21 * console). 22 * Also, the backend could be de-initialized by calling backend 23 * de-initialization function (for example, LOG_DeinitBackendDebugconsole 24 * is the backend of log component is debug console). 25 */ 26 27 /*! 28 * @addtogroup fsl_component_log_backend_debug_console 29 * @ingroup fsl_component_log 30 * @{ 31 */ 32 33 /******************************************************************************* 34 * API 35 ******************************************************************************/ 36 37 #if defined(__cplusplus) 38 extern "C" { 39 #endif /* _cplusplus */ 40 41 /*! 42 * @brief Initializes the backend debugconsole for log component. 43 * 44 * @details This function initializes the backend debugconsole for log component. 45 * The function should be called in application layer. The function 46 * should be called after the log component has been initialized 47 * (the function LOG_Init has been called). 48 */ 49 void LOG_InitBackendDebugconsole(void); 50 51 /*! 52 * @brief De-initializes the backend debugconsole for log component. 53 * 54 * @details This function de-initializes the backend debugconsole for log component. 55 */ 56 void LOG_DeinitBackendDebugconsole(void); 57 58 #if defined(__cplusplus) 59 } 60 #endif 61 /*! @} */ 62 63 #endif /* __FSL_COMPONENT_LOG_BACKEND_DEBUGCONSOLE_H__ */ 64