|
XFusion API v1.3.0
|
使用段属性实现自动初始化。 更多...
#include "../xf_init_config_internal.h"
结构体 | |
| struct | _xf_init_section_desc_t |
| 初始化函数详情结构体. 更多... | |
| #define | XF_INIT_EXPORT_SECTION(function, level) |
| 导出初始化函数到段. | |
| #define | XF_INIT_EXPORT_SECTION_SETUP(function) XF_INIT_EXPORT_SECTION(function, "1") |
| 板级初始化. | |
| #define | XF_INIT_EXPORT_SECTION_BOARD(function) XF_INIT_EXPORT_SECTION(function, "2") |
| 板级初始化. | |
| #define | XF_INIT_EXPORT_SECTION_PREV(function) XF_INIT_EXPORT_SECTION(function, "3") |
| 组件预初始化 (pure software initialization). | |
| #define | XF_INIT_EXPORT_SECTION_CLEANUP(function) XF_INIT_EXPORT_SECTION(function, "4") |
| 板级初始化. | |
| #define | XF_INIT_EXPORT_SECTION_DEVICE(function) XF_INIT_EXPORT_SECTION(function, "5") |
| 设备初始化. | |
| #define | XF_INIT_EXPORT_SECTION_COMPONENT(function) XF_INIT_EXPORT_SECTION(function, "6") |
| 组件初始化 (dfs, lwip, ...). | |
| #define | XF_INIT_EXPORT_SECTION_ENV(function) XF_INIT_EXPORT_SECTION(function, "7") |
| 环境初始化 (mount disk, ...). | |
| #define | XF_INIT_EXPORT_SECTION_APP(function) XF_INIT_EXPORT_SECTION(function, "8") |
| 应用程序初始化 (gui application etc ...). | |
| typedef int(* | xf_init_fn_t) (void) |
| 初始化函数类型. | |
| typedef struct _xf_init_section_desc_t | xf_init_section_desc_t |
| 初始化函数详情结构体. | |
| void | xf_init_from_section (void) |
| section 注册的函数将会被统一在这个函数里面调用。 | |
使用段属性实现自动初始化。
Copyright (c) 2024, CorAL. All rights reserved.
在文件 xf_init_section.h 中定义.
| #define XF_INIT_EXPORT_SECTION | ( | function, | |
| level | |||
| ) |
导出初始化函数到段.
XF_INIT_EXPORT_SECTION_BOARD, 请用之后定义 XF_INIT_* 宏, 如 XF_INIT_EXPORT_BOARD.| function | 初始化函数. 类型见 xf_init_fn_t. |
| level | 字符串等级. 范围: "1" ~ "8". |
在文件 xf_init_section.h 第 81 行定义.
| #define XF_INIT_EXPORT_SECTION_SETUP | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "1") |
| #define XF_INIT_EXPORT_SECTION_BOARD | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "2") |
| #define XF_INIT_EXPORT_SECTION_PREV | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "3") |
组件预初始化 (pure software initialization).
| function | 初始化函数. |
在文件 xf_init_section.h 第 113 行定义.
| #define XF_INIT_EXPORT_SECTION_CLEANUP | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "4") |
| #define XF_INIT_EXPORT_SECTION_DEVICE | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "5") |
| #define XF_INIT_EXPORT_SECTION_COMPONENT | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "6") |
组件初始化 (dfs, lwip, ...).
| function | 初始化函数. |
在文件 xf_init_section.h 第 140 行定义.
| #define XF_INIT_EXPORT_SECTION_ENV | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "7") |
环境初始化 (mount disk, ...).
| function | 初始化函数. |
在文件 xf_init_section.h 第 149 行定义.
| #define XF_INIT_EXPORT_SECTION_APP | ( | function | ) | XF_INIT_EXPORT_SECTION(function, "8") |
应用程序初始化 (gui application etc ...).
| function | 初始化函数. |
在文件 xf_init_section.h 第 158 行定义.
| typedef int(* xf_init_fn_t) (void) |
| typedef struct _xf_init_section_desc_t xf_init_section_desc_t |
初始化函数详情结构体.
desc: description.
| void xf_init_from_section | ( | void | ) |
section 注册的函数将会被统一在这个函数里面调用。