XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_osal.h
浏览该文件的文档.
1
19#ifndef __XF_OSAL_H__
20#define __XF_OSAL_H__
21
22/* ==================== [Includes] ========================================== */
23
24#include "xf_osal_def.h"
26#include "xf_utils.h"
27
28#if XF_OSAL_KERNEL_IS_ENABLE
29#include "xf_osal_kernel.h"
30#endif
31
32#if XF_OSAL_THREAD_IS_ENABLE
33#include "xf_osal_thread.h"
34#endif
35
36#if XF_OSAL_TIMER_IS_ENABLE
37#include "xf_osal_timer.h"
38#endif
39
40#if XF_OSAL_EVENT_IS_ENABLE
41#include "xf_osal_event.h"
42#endif
43
44#if XF_OSAL_MUTEX_IS_ENABLE
45#include "xf_osal_mutex.h"
46#endif
47
48#if XF_OSAL_SEMAPHORE_IS_ENABLE
49#include "xf_osal_semaphore.h"
50#endif
51
52#if XF_OSAL_QUEUE_IS_ENABLE
53#include "xf_osal_queue.h"
54#endif
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60/* ==================== [Defines] =========================================== */
61
62/* ==================== [Typedefs] ========================================== */
63
64/* ==================== [Global Prototypes] ================================= */
65
66/* ==================== [Macros] ============================================ */
67
68#ifdef __cplusplus
69} /* extern "C" */
70#endif
71
72#endif // __XF_OSAL_H__
xf_osal 内部公共定义、函数、数据。
事件标志可以同步线程。
调度器内核控制。
互斥 (Mutex) 同步资源访问
以类似 FIFO 的操作在线程之间交换消息。
信号量可以管理和保护对共享资源的访问。
定义、创建和控制线程函数。
创建和控制定时器和定时器回调函数。