xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_unity_port.h
浏览该文件的文档.
1
12
13#ifndef __XT_UNITY_PORT_H__
14#define __XT_UNITY_PORT_H__
15
16/* ==================== [Includes] ========================================== */
17
18#include "xtiny.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30
31/* ==================== [Defines] =========================================== */
32
33/* ---- Unity 输出重定向:缓冲区收集 + xt_printf 字符串输出 ---- */
34#define XT_UNITY_OUTPUT_BUF_SIZE 256
35
36/* ==================== [Typedefs] ========================================== */
37
38/* ==================== [Global Prototypes] ================================= */
39
42
43/* ==================== [Macros] ============================================ */
44
45#define UNITY_OUTPUT_CHAR(c) xt_unity_out_char(c)
46#define UNITY_OUTPUT_FLUSH() xt_unity_flush_line()
47 /* xt_unity_port */
49
50#ifdef __cplusplus
51} /* extern "C" */
52#endif
53
54#endif /* __XT_UNITY_PORT_H__ */
const char * c(void)
void xt_unity_flush_line(void)
void xt_unity_out_char(char c)
XTINY 总头文件