XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_task_port_config.h
浏览该文件的文档.
1
12#ifndef __XF_TASK_PORT_CONFIG_H__
13#define __XF_TASK_PORT_CONFIG_H__
14
15/* ==================== [Includes] ========================================== */
16
17#include "../xf_task_config_internal.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* ==================== [Defines] =========================================== */
24
25#ifndef XF_TASK_TICKS_FREQUENCY
26# define XF_TASK_TICKS_FREQUENCY 1000
27#endif
28
32#if XF_TASK_CONTEXT_IS_ENABLE
33typedef XF_TASK_CONTEXT_TYPE xf_task_context_t;
34# ifndef XF_TASK_CONTEXT_TYPE
35# error "The context object does not give the exact type!"
36# endif // XF_TASK_CONTEXT_TYPE
37#endif // XF_TASK_CONTEXT_IS_ENABLE
38
39/* ==================== [Typedefs] ========================================== */
40
41/* ==================== [Global Prototypes] ================================= */
42
43/* ==================== [Macros] ============================================ */
44
45#ifdef __cplusplus
46} /* extern "C" */
47#endif
48
49#endif // __XF_TASK_PORT_CONFIG_H__
XF_TASK_CONTEXT_TYPE xf_task_context_t
如果开启上下文, 旧必须设置 XF_TASK_CONTEXT_TYPE 的类型。