继续回到 第一段代码 ,分析for循环中的东西: for (desc = &__rt_init_desc_rti_board_start; desc < &__rt_init_desc_rti_board_end; desc ++) 可以看到 desc 被&__rt_init_desc_rti_board_start 做了初始化。继续跟踪,程序调到了 这条宏 INIT_EXPORT(rti_board_start, "0.end"); 继续跟踪,又...
初始化顺序 宏接口 描述1INIT_BOARD_EXPORT(fn) 非常早期的初始化,此时调度器还未启动。使用该宏后,fn 将属于 “boardinitfunctions” 2INIT_PREV_EXPORT(fn)主要是用于纯软件的初始化、没有太多依赖的函数。使用该宏后,fn 将属于 “pre-initialization ...
“board init functions”为所有通过 INIT_BOARD_EXPORT(fn)申明的初始化函数。 “pre-initialization functions”为所有通过 INIT_PREV_EXPORT(fn)申明的初始化函数。 “device init functions”为所有通过 INIT_DEVICE_EXPORT(fn)申明的初始化函数。 “components init functions”为所有通过 INIT_COMPONENT_EXPORT(fn)...
} INIT_DEVICE_EXPORT(drv_test_hw_init); 这些代码放到bsp/my_board/drivers/uart_drv.c中可以正常启动,也会有打印drv_test_hw_init; 放到另外一个c文件里面就报错,如图,从map里面看 drv_test_hw_init的地址0x8000b800 __rt_init_drv_test_hw_init的地址0x8008b460,而从报错信息看 8008b460对应的函数是...
完全一样的接口,如果用INIT_APP_EXPORT就可以正常启动,如果用INIT_BOARD_EXPORT,镜像下载到内存里面,一点反应都没有,没有任何打印,除了会出现一个E字符,图片最下面 ...
Action可以在多个rc文件出现,比如on boot可以出现在init.rc , 也可以出现在/vendor/etc/init/hw/init.rk30board.rc中。 二, init.rc 示例 import /init.environ.rc import /init.usb.rc import /init.${ro.hardware}.rc import /vendor/etc/init/hw/init.${ro.hardware}.rc ...
RT-thread提供了组件化功能,具体实现是在components/init文件夹下components.c文件中实现的。应用组件化功能首先在rtconfig.h中添加宏定义#defineRT_USING_COMPONENTS_INIT;若需要启用调试模式,则还要添加#define RT_DEBUG_INIT 1。 1voidrt_components_board_init(void)2{3#ifndef _MSC_VER ...
# SPRD: move this to board level init @{ #export EXTERNAL_STORAGE /storage/emulated/legacy #export SECONDARY_STORAGE /storage/sdcard0 # @} # SPRD: for storage manage @{ export LEGACY_STORAGE /storage/emulated/legacy # @} 1. 2.
export default { data() { return { data, filterValue: {}, columns: [ { title: 'FirstName', colKey: 'firstName', // 单选过滤配置 filter: { type: 'single', list: [ { label: 'anyone', value: '' }, { label: 'Heriberto', value: 'Heriberto' }, { label: 'Eric', value: '...
#define INIT_BOARD_EXPORT(fn) INIT_EXPORT(fn, "1") #define INIT_CPU_EXPORT(fn) INIT_EXPORT(fn, "2") #define INIT_DEVICE_EXPORT(fn) INIT_EXPORT(fn, "3") #define INIT_COMPONENT_EXPORT(fn) INIT_EXPORT(fn, "4") #define INIT_FS_EXPORT(fn) INIT_EXPORT(fn, "5") ...