|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "los_typedef.h"
宏定义 | |
| #define | ATTRIBUTE_USED __attribute__((__used__)) |
| #define | DO_INITCALL(fn, level) SysInitcallFunc initFn_##fn ATTRIBUTE_USED __attribute__((section(".sysinitcall"#level".init"))) = fn |
| #define | CREATE_INITCALL(fn, level, sync) DO_INITCALL(fn, _level##level##_##sync) |
| #define | SYS_INITCALL(fn, level, sync) CREATE_INITCALL(fn, level, sync) |
| #define | SYS_INIT_LEVEL_EARLY 0 /* reserved before kernel init */ |
| #define | SYS_INIT_LEVEL_AHEAD 1 /* prepare for initialization and debug tool init */ |
| #define | SYS_INIT_LEVEL_ARCH 2 /* arch and platform initialization */ |
| #define | SYS_INIT_LEVEL_KERNEL 3 /* system basic module need init earlier */ |
| #define | SYS_INIT_LEVEL_KERNEL_ADDITION 4 /* system additional module init, rely on kernel */ |
| #define | SYS_INIT_LEVEL_COMPONENT 5 /* component level used for fs drivers compat and so on */ |
| #define | SYS_INIT_LEVEL_APP 6 /* application init */ |
| #define | SYS_INIT_LEVEL_RESERVE 7 /* reserved after kernel init */ |
| #define | SYS_INIT_SYNC_0 s0 |
| #define | SYS_INIT_SYNC_1 s1 |
| #define | SYS_INIT_SYNC_2 s2 |
| #define | SYS_INIT_SYNC_3 s3 |
| #define | SYS_INIT_SYNC_4 s4 |
| #define | LOS_SYS_INIT(func, level, sync) SYS_INITCALL(func, level, sync) |
| Register a startup module to the startup process. | |
类型定义 | |
| typedef UINT32(* | SysInitcallFunc) (void) |
| #define ATTRIBUTE_USED __attribute__((__used__)) |
| #define CREATE_INITCALL | ( | fn, | |
| level, | |||
| sync | |||
| ) | DO_INITCALL(fn, _level##level##_##sync) |
| #define DO_INITCALL | ( | fn, | |
| level | |||
| ) | SysInitcallFunc initFn_##fn ATTRIBUTE_USED __attribute__((section(".sysinitcall"#level".init"))) = fn |
| #define SYS_INIT_LEVEL_AHEAD 1 /* prepare for initialization and debug tool init */ |
| #define SYS_INIT_LEVEL_APP 6 /* application init */ |
| #define SYS_INIT_LEVEL_ARCH 2 /* arch and platform initialization */ |
| #define SYS_INIT_LEVEL_COMPONENT 5 /* component level used for fs drivers compat and so on */ |
| #define SYS_INIT_LEVEL_KERNEL 3 /* system basic module need init earlier */ |
| #define SYS_INIT_LEVEL_KERNEL_ADDITION 4 /* system additional module init, rely on kernel */ |
| #define SYS_INIT_LEVEL_RESERVE 7 /* reserved after kernel init */ |
| #define SYS_INIT_SYNC_1 s1 |
| #define SYS_INIT_SYNC_2 s2 |
| #define SYS_INIT_SYNC_3 s3 |
| #define SYS_INIT_SYNC_4 s4 |
| #define SYS_INITCALL | ( | fn, | |
| level, | |||
| sync | |||
| ) | CREATE_INITCALL(fn, level, sync) |
| typedef UINT32(* SysInitcallFunc) (void) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |