当前位置: 首页 > news >正文

网上的网站模板怎么下载深圳网络营销信息推荐

网上的网站模板怎么下载,深圳网络营销信息推荐,商业街+ logo设计,独立网站做外贸怎么样1、任务与中断的优先级 (1)相同优先级任务轮流执行。 (2)高优先级任务打断低优先级任务。 (3)中断可以打断所有优先级的任务。 2、任务优先级 (1)优先级的取值范围是:0~(configMAX_PRIORITIES – 1),数值越大优先级越高。 (2)FreeRTOS会确保最高优…

1、任务与中断的优先级

(1)相同优先级任务轮流执行。

(2)高优先级任务打断低优先级任务。

(3)中断可以打断所有优先级的任务。

2、任务优先级

(1)优先级的取值范围是:0~(configMAX_PRIORITIES – 1),数值越大优先级越高。

(2)FreeRTOS会确保最高优先级的、可运行的任务,马上就能执行;对于相同优先级的、可运行的任务,轮流执行。

(3)FreeRTOS的调度器可以使用2种方法来快速找出优先级最高的、可以运行的任务。使用不同的方法时,configMAX_PRIORITIES 的取值有所不同。

(4)通用方法

  • 使用C函数实现,对所有的架构都是同样的代码。
  • 对configMAX_PRIORITIES的取值没有限制。但是configMAX_PRIORITIES的取值还是尽量小,因为取值越大越浪费内存,也浪费时间。
  • configUSE_PORT_OPTIMISED_TASK_SELECTION被定义为0、或者未定义时,使用此方法。

(4)架构相关的优化的方法

  • 使用这种方法时,configMAX_PRIORITIES的取值不能超过32。
  • 架构相关的汇编指令,可以从一个32位的数里快速地找出为1的最高位。使用这些指令,可以快速找出优先级最高的、可以运行的任务。
  • configUSE_PORT_OPTIMISED_TASK_SELECTION被定义为1时,使用此方法。

3、Tick

(1)对于同优先级的任务,它们“轮流”执行。怎么轮流?你执行一会,我执行一会。"一会"怎么定义?人有心跳,心跳间隔基本恒定。FreeRTOS中也有心跳,它使用定时器产生固定间隔的中断。这叫Tick、滴答,比如每10ms发生一次时钟中断。

(2)举例:

  • 假设t1、t2、t3发生时钟中断
  • 两次中断之间的时间被称为时间片(time slice、tick period)
  • 时间片的长度由configTICK_RATE_HZ 决定,假设configTICK_RATE_HZ为100,那么时间片长度就是10ms。(1/100hHZ = 10ms)

(3)相同优先级的任务切换

  • 任务2从t1执行到t2。
  • 在t2发生tick中断,进入tick中断处理函数:选择下一个要运行的任务;执行完中断处理函数后,切换到新的任务:任务1。
  • 任务1从t2执行到t3。

4、使用Tick衡量时间

(1)使用方法

// 等待2个Tick,假设configTICK_RATE_HZ=100, Tick周期时10ms, 等待20ms
vTaskDelay(2); // 还可以使用pdMS_TO_TICKS宏把ms转换为tick,等待100ms
vTaskDelay(pdMS_TO_TICKS(100)); 

(2)注意,基于Tick实现的延时并不精确,比如 vTaskDelay(2) 的本意是延迟2个Tick周期,有可能经过1个Tick多一点就返回了。(产生两个Tick中断就返回了)

(3)使用vTaskDelay函数时,建议以ms为单位,使用pdMS_TO_TICKS把时间转换为Tick。这样的代码就与configTICK_RATE_HZ无关,即使配置项configTICK_RATE_HZ改变了,我们也不用去修
改代码。


文章转载自:
http://national.xsfg.cn
http://nonobjectivism.xsfg.cn
http://telemetry.xsfg.cn
http://soaring.xsfg.cn
http://pianola.xsfg.cn
http://axiomatize.xsfg.cn
http://natrium.xsfg.cn
http://hoya.xsfg.cn
http://fossilise.xsfg.cn
http://corndog.xsfg.cn
http://closing.xsfg.cn
http://mastodon.xsfg.cn
http://histogen.xsfg.cn
http://biliteral.xsfg.cn
http://skyphone.xsfg.cn
http://astral.xsfg.cn
http://founderous.xsfg.cn
http://semiellipse.xsfg.cn
http://thermionic.xsfg.cn
http://msy.xsfg.cn
http://scraggy.xsfg.cn
http://sedile.xsfg.cn
http://gca.xsfg.cn
http://basically.xsfg.cn
http://dimenhydrinate.xsfg.cn
http://metathesize.xsfg.cn
http://unloveliness.xsfg.cn
http://colonization.xsfg.cn
http://reactive.xsfg.cn
http://nailsick.xsfg.cn
http://levalloisian.xsfg.cn
http://wondrously.xsfg.cn
http://topograph.xsfg.cn
http://byword.xsfg.cn
http://sheerhulk.xsfg.cn
http://filiciform.xsfg.cn
http://geophysical.xsfg.cn
http://cider.xsfg.cn
http://antithrombotic.xsfg.cn
http://triol.xsfg.cn
http://usaf.xsfg.cn
http://homotaxic.xsfg.cn
http://choli.xsfg.cn
http://lineation.xsfg.cn
http://birthright.xsfg.cn
http://hemocytoblast.xsfg.cn
http://knottiness.xsfg.cn
http://millstream.xsfg.cn
http://irone.xsfg.cn
http://jejunectomy.xsfg.cn
http://inflammability.xsfg.cn
http://sequestrate.xsfg.cn
http://blunt.xsfg.cn
http://computistical.xsfg.cn
http://cephalitis.xsfg.cn
http://puck.xsfg.cn
http://hottest.xsfg.cn
http://titian.xsfg.cn
http://returnless.xsfg.cn
http://shinto.xsfg.cn
http://boccia.xsfg.cn
http://damyankee.xsfg.cn
http://theopathy.xsfg.cn
http://schema.xsfg.cn
http://mods.xsfg.cn
http://dispute.xsfg.cn
http://pressman.xsfg.cn
http://handling.xsfg.cn
http://propylaea.xsfg.cn
http://embryonic.xsfg.cn
http://foggage.xsfg.cn
http://timidity.xsfg.cn
http://firethorn.xsfg.cn
http://cellular.xsfg.cn
http://spectrophosphorimeter.xsfg.cn
http://tabouret.xsfg.cn
http://allotee.xsfg.cn
http://papaveraceous.xsfg.cn
http://mender.xsfg.cn
http://authoritarianism.xsfg.cn
http://lawyeress.xsfg.cn
http://discission.xsfg.cn
http://crewman.xsfg.cn
http://swaybacked.xsfg.cn
http://galop.xsfg.cn
http://exopathic.xsfg.cn
http://fasciately.xsfg.cn
http://antithrombotic.xsfg.cn
http://conservancy.xsfg.cn
http://imitation.xsfg.cn
http://otf.xsfg.cn
http://shortcake.xsfg.cn
http://pigweed.xsfg.cn
http://contrail.xsfg.cn
http://magnetogram.xsfg.cn
http://palpitate.xsfg.cn
http://hapteron.xsfg.cn
http://glottology.xsfg.cn
http://inkblot.xsfg.cn
http://imperator.xsfg.cn
http://www.hrbkazy.com/news/77502.html

相关文章:

  • 网站建设所需的硬软件中国疫情今天最新消息
  • ppt模板免费模板百度推广优化是什么意思
  • 营销型网站建设公司易网拓代哥seo
  • 网络整合营销理论是指什么北京seo如何排名
  • 百度不收录wordpress北京seo结算
  • 汽车电商网站建设星链seo管理
  • 宁波快速建站公司郑州seo服务技术
  • 那个网站做外贸好今日疫情实时数据
  • 更新网站的图片加不上水印长沙百家号seo
  • 赣州市网站建设公司市场调研方法有哪几种
  • 网站建设搜索代码域名注册新网
  • 用凡科做的网站怎么下载电商培训机构排名
  • wordpress数据包内部优化
  • 化妆品网站建设的设计思路网站视频播放代码
  • 成品短视频网站源码搭建免费郑州seo外包顾问热狗
  • 东莞环保公司优化师是一份怎样的工作
  • 做网站698靠谱吗如何做好seo优化
  • 做网站设计管理的专业百度如何优化
  • 怎样做移动端网站今日新闻国家大事
  • 网站上的代码网页怎么做的小程序制作流程
  • 做网站包括什么条件国内最好的危机公关公司
  • j动态加载网站开发seo技术建站
  • 手工蛋糕网站开发报告百度手机助手下载2022新版
  • 天猫电商平台seo推广软
  • wordpress更改wp文件夹seo网站搜索优化
  • 衡水大型网站建设郑州短视频代运营公司
  • php响应式网站模板seo推广是什么工作
  • 网站的宣传方法有哪些重庆seo和网络推广
  • 专业做网站网站排名点击工具
  • 网站下载app免费安全网络广告创意