1 /**
2   ******************************************************************************
3   * @file    rtl_trace.h
4   * @author
5   * @version V1.0.0
6   * @date    2016-05-17
7   * @brief   This file contains all the functions for log print and mask.
8   ******************************************************************************
9   * @attention
10   *
11   * This module is a confidential and proprietary property of RealTek and
12   * possession or use of this module requires written permission of RealTek.
13   *
14   * Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
15   ******************************************************************************
16   */
17 
18 u32 LOG_PRINTF_BUFFER(const char *fmt);
19 u32 LOG_PRINTF_BUFFER_INIT(u32 thread_init);
20 u32 LOG_BUFF_SUSPEND(void);
21 u32 LOG_BUFF_RESUME(void);
22 
23 #define LOG_BUFFER_NUM					6
24 #define LOG_BUFFER_SIZE				512
25 typedef struct {
26 	char buffer[LOG_BUFFER_SIZE];
27 	/* please define member after buffer */
28 } log_buffer_t;
29 extern log_buffer_t log_buffer[];
30 
31 typedef u32 (*DIAG_PRINT_BUF_FUNC)(const char *fmt);
32 
33 extern DIAG_PRINT_BUF_FUNC ConfigDebugBufferGet;
34 /******************* (C) COPYRIGHT 2016 Realtek Semiconductor *****END OF FILE****/
35