Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
RT-Thread
rt-thread
提交
cf0db957
R
rt-thread
项目概览
RT-Thread
/
rt-thread
大约 1 年 前同步成功
通知
776
Star
8911
Fork
4735
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cf0db957
编写于
6月 29, 2013
作者:
Y
yiyue.fang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reformat the coding style in rtdef.h
convert the Tabs to Spaces
上级
873a5de8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
17 deletion
+17
-17
include/rtdef.h
include/rtdef.h
+17
-17
未找到文件。
include/rtdef.h
浏览文件 @
cf0db957
...
...
@@ -93,7 +93,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#include <stdarg.h>
#define SECTION(x) __attribute__((section(x)))
#define UNUSED __attribute__((unused))
#define USED
__attribute__((used))
#define USED
__attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define rt_inline static __inline
/* module compiling */
...
...
@@ -107,7 +107,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#include <stdarg.h>
#define SECTION(x) @ x
#define UNUSED
#define USED
#define USED
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n) PRAGMA(data_alignment=n)
#define rt_inline static inline
...
...
@@ -140,7 +140,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define SECTION(x) __attribute__((section(x)))
#define UNUSED __attribute__((unused))
#define USED
__attribute__((used))
#define USED
__attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define rt_inline static __inline
#define RTT_API
...
...
@@ -148,7 +148,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#include <stdarg.h>
#define SECTION(x) __attribute__((section(x)))
#define UNUSED __attribute__((unused))
#define USED
__attribute__((used))
#define USED
__attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define rt_inline static inline
#define RTT_API
...
...
@@ -156,7 +156,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#include <stdarg.h>
#define SECTION(x)
#define UNUSED
#define USED
#define USED
#define ALIGN(n) __declspec(align(n))
#define rt_inline static __inline
#define RTT_API
...
...
@@ -166,7 +166,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
* details. */
#define SECTION(x)
#define UNUSED
#define USED
#define USED
#define ALIGN(n)
#define rt_inline static inline
#define RTT_API
...
...
@@ -177,19 +177,19 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
/* initialization export */
#ifdef RT_USING_COMPONENTS_INIT
typedef
int
(
*
init_fn_t
)(
void
);
#define INIT_EXPORT(fn, level)
\
const init_fn_t __rt_init_##fn SECTION(".rti_fn."level) = fn
#define INIT_EXPORT(fn, level)
\
const init_fn_t __rt_init_##fn SECTION(".rti_fn."level) = fn
#else
#define INIT_EXPORT(fn, level)
#endif
/* board init routines will be called in board_init() function */
#define INIT_BOARD_EXPORT(fn)
INIT_EXPORT(fn, "1")
#define INIT_BOARD_EXPORT(fn)
INIT_EXPORT(fn, "1")
/* device/component/fs/app init routines will be called in init_thread */
#define INIT_DEVICE_EXPORT(fn)
INIT_EXPORT(fn, "2")
#define INIT_COMPONENT_EXPORT(fn)
INIT_EXPORT(fn, "3")
#define INIT_FS_EXPORT(fn)
INIT_EXPORT(fn, "4")
#define INIT_APP_EXPORT(fn)
INIT_EXPORT(fn, "5")
#define INIT_DEVICE_EXPORT(fn)
INIT_EXPORT(fn, "2")
#define INIT_COMPONENT_EXPORT(fn)
INIT_EXPORT(fn, "3")
#define INIT_FS_EXPORT(fn)
INIT_EXPORT(fn, "4")
#define INIT_APP_EXPORT(fn)
INIT_EXPORT(fn, "5")
/* event length */
#define RT_EVENT_LENGTH 32
...
...
@@ -201,15 +201,15 @@ typedef int (*init_fn_t)(void);
/* kernel malloc definitions */
#ifndef RT_KERNEL_MALLOC
#define RT_KERNEL_MALLOC(sz)
rt_malloc(sz)
#define RT_KERNEL_MALLOC(sz)
rt_malloc(sz)
#endif
#ifndef RT_KERNEL_FREE
#define RT_KERNEL_FREE(ptr)
rt_free(ptr)
#define RT_KERNEL_FREE(ptr)
rt_free(ptr)
#endif
#ifndef RT_KERNEL_REALLOC
#define RT_KERNEL_REALLOC(ptr, size)
rt_realloc(ptr, size)
#define RT_KERNEL_REALLOC(ptr, size)
rt_realloc(ptr, size)
#endif
/**
...
...
@@ -716,7 +716,7 @@ enum rt_device_class_type
RT_Device_Class_SPIDevice
,
/**< SPI device */
RT_Device_Class_SDIO
,
/**< SDIO bus device */
RT_Device_Class_PM
,
/**< PM pseudo device */
RT_Device_Class_Miscellaneous
,
/**< Miscellaneous device */
RT_Device_Class_Miscellaneous
,
/**< Miscellaneous device */
RT_Device_Class_Unknown
/**< unknown device */
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录