OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2673|回复: 2

关于dflt_time_quanta的疑问

[复制链接]

1

主题

4

帖子

0

精华

初级会员

Rank: 2

积分
56
金钱
56
注册时间
2013-12-4
在线时间
6 小时
发表于 2016-6-1 16:32:17 | 显示全部楼层 |阅读模式
今天学习STM32F1 UCOS开发手册V2.0 第6章时遇到一个问题,想向原子哥请教一下。

第92页有一句话,如果OSCfg_TickRate_Hz为200,那么时间片长度为:200/10*5=100ms

个人感觉这个时间片长度应该为50ms。

于是查找了英文手册,看到关于dflt_time_quanta 的描述如下:

dflt_time_quanta
is the default time quanta given to a task. This value is used when
a task is created and you specify a value of 0 for the time quanta.
In other words, if the user did not specify a non-zero for the task’s
time quanta, this is the value that will be used. If passing 0 for this
argument, μC/OS-III will assume a time quanta of 1/10 the tick
rate. For example, if the tick rate is 1000 Hz and 0 is passed for
dflt_time_quanta then, μC/OS-III will set the time quanta to 10
milliseconds.
请原子哥看一下,我的疑问对不对?谢谢!


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

4

帖子

0

精华

初级会员

Rank: 2

积分
56
金钱
56
注册时间
2013-12-4
在线时间
6 小时
 楼主| 发表于 2016-6-2 13:15:18 | 显示全部楼层
发现在STM32 F4 UCOS开发手册中也有这个问题,请版主看看,是不是有问题,谢谢!
dflt_time_quanta.jpg
回复 支持 反对

使用道具 举报

1

主题

4

帖子

0

精华

初级会员

Rank: 2

积分
56
金钱
56
注册时间
2013-12-4
在线时间
6 小时
 楼主| 发表于 2016-6-4 21:23:45 | 显示全部楼层
各位朋友,有没有赞同我的观点的呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-24 05:53

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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