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: osal inner
4
*
5
* Create: 2021-12-16
6
*/
7
8
#ifndef OSAL_INNER_H
9
#define OSAL_INNER_H
10
11
#ifndef FALSE
12
#define FALSE 0
13
#endif
14
15
#ifndef TRUE
16
#define TRUE 1
17
#endif
18
19
#ifndef NULL
20
#define NULL ((void *)0)
21
#endif
22
23
#define va_num_args_impl(_1, _2, _3, _4, _5, N, ...) N
24
#define va_num_args(...) va_num_args_impl(__VA_ARGS__, 5, 4, 3, 2, 1)
25
#define all_unused_impl_(nargs) osal_unused##nargs
26
#define all_unused_impl(nargs) all_unused_impl_(nargs)
27
28
#define osal_unused1(var) (void)(var)
29
#define osal_unused2(y, z) osal_unused1(y), osal_unused1(z)
30
#define osal_unused3(x, y, z) osal_unused1(x), osal_unused2(y, z)
31
#define osal_unused4(a, b, x, y) osal_unused2(a, b), osal_unused2(x, y)
32
#define osal_unused5(a, b, x, y, z) osal_unused2(a, b), osal_unused3(x, y, z)
33
#define osal_unused(...) all_unused_impl(va_num_args(__VA_ARGS__))(__VA_ARGS__)
34
35
#if !defined(OSALLOG_DISABLE) && !defined(CONFIG_DRIVER_DISABLE_OSAL_LOG)
36
#define osal_log(fmt, ...) osal_printk("[%s:%d]:" fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__)
37
#else
38
#define osal_log(fmt, ...)
39
#endif
40
41
#endif
src
kernel
osal
src
liteos
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