/**
******************************************************************************************************************************************************************************************
*@file                       app_trace.h
*@author         
*@data                       
*@version                    v1.0
*@par Copyright(c):
*
*@par History:
*     version:author,date,desc
*     v1.0   :create this file
*
*******************************************************************************************************************************************************************************************
*/
#ifndef _APP_TRACE_H_
#define _APP_TRACE_H_

#include "sdk_include.h"

extern int user_print(char *fmt,...);
extern int block_putchar (int ch);
extern int user_block_print(char *fmt,...);
//extern int user_print_hex(char* lable,char *buf,unsigned char len);
extern int user_print_hex(char* lable,unsigned char *buf,unsigned char len);
extern int user_block_print_hex(char* lable,char *buf,unsigned char len);

//中断打印
#define dbg_printf(fmt,...) 					user_print(fmt,##__VA_ARGS__)
//阻塞打印
#define dbg_block_printf(fmt,...) 				user_block_print(fmt,##__VA_ARGS__)
//阻塞字符输出
#define dbg_putchar(fmt,...) 					block_putchar(fmt,##__VA_ARGS__)
//中断打印内存数组
#define dbg_printf_hex(lable,buf,len)			user_print_hex(lable,buf,len)
//阻塞打印内存数组
#define dbg_block_printf_hex(lable,buf,len)	user_block_print_hex(lable,buf,len)

#endif
