项目要求将cpci的驱动做成Tornado组件,尝试了一下!
Folder FOLDER_CPCI { //上层组件设置
NAME cpci components
SYNOPSIS initial of cpci components
_CHILDREN FOLDER_ROOT
}
Component INCLUDE_CPCI16IO { //下层组件设置
NAME cpci16io
SYNOPSIS init cpci16io
_CHILDREN FOLDER_CPCI
CONFIGLETTES initdrv.c
INIT_RTN initcpci16io();
}
Component INCLUDE_CPCI32IO {
NAME cpci32io
SYNOPSIS init cpci32io
_CHILDREN FOLDER_CPCI
CONFIGLETTES initdrv.c
INIT_RTN initcpci32io();
}
Component INCLUDE_CPCIUART {
NAME cpciuart
SYNOPSIS init cpciuart
_CHILDREN FOLDER_CPCI
CONFIGLETTES initdrv.c
INIT_RTN initcpciuart();
}
InitGroup usrCpciInit { //初始化设置
INIT_RTN usrCpciInit ();
INIT_ORDER INCLUDE_CPCI16IO INCLUDE_CPCI32IO INCLUDE_CPCIUART
INIT_BEFORE INCLUDE_USER_APPL //初始化位置
_INIT_ORDER usrRoot //初始化函数所属函数
}