21ic问答首页 - 请问TI-RTOS里swiParams.arg0里的arg0是用来做什么的?
请问TI-RTOS里swiParams.arg0里的arg0是用来做什么的?
fondsjay2020-12-25
本帖最后由 fondsjay 于 2020-12-25 13:32 编辑
Swi_create creates a new Swi object.
The following C code sets Swi parameters and creates two Swi objects:
Void main() { Swi_Params swiParams;
Swi_Params_init(&swiParams);
swiParams.arg0 = 1;
swiParams.arg1 = 0;
swiParams.priority = 2;
swiParams.trigger = 0;
swi0 = Swi_create(swi0Fxn, &swiParams, NULL);
swiParams.arg0 = 2;
swiParams.arg1 = 0;
swiParams.priority = 1;
swiParams.trigger = 3;
swi1 = Swi_create(swi1Fxn, &swiParams, NULL);
BIOS_start();
}
以上arg0和arg1是什么意思?定义时有什么讲究吗?
Swi_create creates a new Swi object.
The following C code sets Swi parameters and creates two Swi objects:
Void main() { Swi_Params swiParams;
Swi_Params_init(&swiParams);
swiParams.arg0 = 1;
swiParams.arg1 = 0;
swiParams.priority = 2;
swiParams.trigger = 0;
swi0 = Swi_create(swi0Fxn, &swiParams, NULL);
swiParams.arg0 = 2;
swiParams.arg1 = 0;
swiParams.priority = 1;
swiParams.trigger = 3;
swi1 = Swi_create(swi1Fxn, &swiParams, NULL);
BIOS_start();
}
以上arg0和arg1是什么意思?定义时有什么讲究吗?
您需要登录后才可以回复 登录 | 注册