xt-sdk 文档
v1.0.3
xt-sdk 嵌入式 SDK API 参考
Toggle main menu visibility
载入中...
搜索中...
未找到
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
21
extern
"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
40
void
xt_unity_flush_line
(
void
);
41
void
xt_unity_out_char
(
char
c
);
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__ */
c
const char * c(void)
xt_unity_flush_line
void xt_unity_flush_line(void)
xt_unity_out_char
void xt_unity_out_char(char c)
xtiny.h
XTINY 总头文件
components
xt_unity
xt_unity_port.h
生成于
, 为 xt-sdk 文档使用
1.17.0