|
| #define | USED_ATTR __attribute__((used)) |
| |
| #define | layer_initcall(func, layer, clayer, priority) |
| |
| #define | layer_initcall_def(func, layer, clayer) layer_initcall(func, layer, clayer, 0) |
| |
| #define | app_run(func) layer_initcall_def(func, run, "app_run") |
| | Identifies the entry for initializing and starting a system running phase.
|
| |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: Provides the entries for initializing and starting services and features.
◆ app_run
Identifies the entry for initializing and starting a system running phase.
- 参数
-
| func | Indicates the entry function for initializing and starting a system running phase. The type is void (*)(void). |
定义系统初始化和启动的入口。
- 参数
-
| [in] | func | 系统初始化和启动的入口。类型是:void (*)(void)。 |
◆ layer_initcall
| #define layer_initcall |
( |
|
func, |
|
|
|
layer, |
|
|
|
clayer, |
|
|
|
priority |
|
) |
| |
值:
__attribute__((section(".zinitcall." clayer #priority ".init"))) = (func)
#define USED_ATTR
Definition app_init.h:23
void(* init_call_t)(void)
Definition app_init.h:21
◆ layer_initcall_def
| #define layer_initcall_def |
( |
|
func, |
|
|
|
layer, |
|
|
|
clayer |
|
) |
| layer_initcall(func, layer, clayer, 0) |
◆ USED_ATTR
◆ init_call_t
| typedef void(* init_call_t) (void) |
◆ app_tasks_init()
| void app_tasks_init |
( |
void |
| ) |
|
◆ system_init()
| void system_init |
( |
void |
| ) |
|