查看: 2379|回复: 2

[已解决] 新手求助(已解决)

[复制链接]

该用户从未签到

51

主题

307

帖子

0

高级会员

Rank: 4

积分
651
最后登录
2020-9-4
发表于 2013-5-22 10:47:24 | 显示全部楼层 |阅读模式
Prototype
source\kernel\ta_creat.c
_task_id _task_create(
_processor_number processor_number,
_mqx_uint template_index,
uint_32 parameter)
source\kernel\ta_creatb.c
_task_id _task_create_blocked(
_processor_number processor_number,
_mqx_uint template_index,
uint_32 parameter)
source\kernel\ta_creas.c
_task_id _task_create_at(
_processor_number processor_number,
_mqx_uint template_index,
uint_32 parameter,
pointer stack_ptr,
_mem_size stack_size)
Parameters
processor_number [IN] — One of the following:
processor number of the processor where the task is to be created
0 (create on the local processor)----是指处理器的号是可以在0~255随意设置吗?
template_index [IN] — One of the following:
index of the task template in the processor’s task template list to use for the child task
0 (use the task template that create_parameter defines)
parameter [IN]---有何意义???
template_index is not 0 — pointer to the parameter that MQX passes to the child task
template_index is 0 — pointer to the task template
stack_ptr [IN] — The location where the stack and TD are to be created.
stack_size [IN] — The size of the stack.
哪位大侠,能否帮我解答一下???
我知道答案 目前已有1人回答
回复

使用道具 举报

该用户从未签到

1

主题

178

帖子

0

高级会员

Rank: 4

积分
825
最后登录
1970-1-1
发表于 2013-5-22 10:53:40 | 显示全部楼层

RE:新手求助

processor_number [IN] — One of the following:
processor number of the processor where the task is to be created
0 (create on the local processor)----是指处理器的号是可以在0~255随意设置吗?
我觉得这个是为双核或者多核处理器而设置的,如果MCU只有一个核,那这个就应设为0.
回复 支持 反对

使用道具 举报

该用户从未签到

1

主题

178

帖子

0

高级会员

Rank: 4

积分
825
最后登录
1970-1-1
发表于 2013-5-22 11:13:53 | 显示全部楼层

RE:新手求助(正解)

parameter [IN]---有何意义???
这个是所创建的task要用到的输入参数吧,它可以是一个指针,指向一个数据结构或数组,具体的操作依赖task本身。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-10-29 09:51 , Processed in 0.080313 second(s), 23 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表