WS63 SDK 文档
7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_inner.h
浏览该文件的文档.
1
/*
2
* Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2022. All rights reserved.
3
* Description: OS Abstract Layer.
4
*/
5
6
#ifndef OSAL_INNER_H
7
#define OSAL_INNER_H
8
9
#ifndef FALSE
10
#define FALSE 0
11
#endif
12
13
#ifndef TRUE
14
#define TRUE 1
15
#endif
16
17
#ifndef NULL
18
#define NULL ((void *)0)
19
#endif
20
21
#define va_num_args_impl(_1, _2, _3, _4, _5, N, ...) N
22
#define va_num_args(...) va_num_args_impl(__VA_ARGS__, 5, 4, 3, 2, 1)
23
#define all_unused_impl_(nargs) osal_unused##nargs
24
#define all_unused_impl(nargs) all_unused_impl_(nargs)
25
26
#define osal_unused1(var) (void)(var)
27
#define osal_unused2(y, z) osal_unused1(y), osal_unused1(z)
28
#define osal_unused3(x, y, z) osal_unused1(x), osal_unused2(y, z)
29
#define osal_unused4(a, b, x, y) osal_unused2(a, b), osal_unused2(x, y)
30
#define osal_unused5(a, b, x, y, z) osal_unused2(a, b), osal_unused3(x, y, z)
31
#define osal_unused(...) all_unused_impl(va_num_args(__VA_ARGS__))(__VA_ARGS__)
32
33
#define osal_log(fmt, ...) osal_printk("[%s:%d]:" fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__)
34
35
#endif
src
kernel
non_os
non_os
osal_inner.h
由
William Goodspeed
维护 | E-mail: gongzl@stu.hebust.edu.cn | Wechat: a23333344 | ALSO CHECKOUT
WS63FLASH
!
生成于 2025年 一月 4日 星期六 17:47:12 , 为 WS63 SDK 文档使用
1.9.8