25 lines
580 B
C
25 lines
580 B
C
#ifndef __XTELL_H__
|
|
#define __XTELL_H__
|
|
|
|
#include "config.h"
|
|
|
|
// 全局调试日志开关
|
|
#define XTELL_DEBUG_ENABLE
|
|
|
|
// 声明底层串口发送函数 (由 system.c 提供)
|
|
extern void Uart_SendString(char *p);
|
|
extern void Uart_SendHex8(u8 val);
|
|
extern void Uart_SendHex32(u32 val);
|
|
|
|
#ifdef XTELL_DEBUG_ENABLE
|
|
#define XTELL_LOG(s) Uart_SendString(s)
|
|
#define XTELL_LOG_HEX8(v) Uart_SendHex8(v)
|
|
#define XTELL_LOG_HEX32(v) Uart_SendHex32(v)
|
|
#else
|
|
#define XTELL_LOG(s)
|
|
#define XTELL_LOG_HEX8(v)
|
|
#define XTELL_LOG_HEX32(v)
|
|
#endif
|
|
|
|
#endif // __XTELL_H__
|