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

鲜花网站建设策划方案书二手交易网站开发方式

鲜花网站建设策划方案书,二手交易网站开发方式,商务通代码是不是只要放在网站根目录下就可以了,怎样在拼多多平台上卖货两个Delay函数有两个延时函数vTaskDelay#xff1a;至少等待指定个数的Tick Interrupt才能变为就绪态xTaskDelayUtil#xff1a;等待到指定的绝对时刻#xff0c;才能变为就绪态个人感觉这两个延时函数就是#xff0c;比如一个我等3个小时#xff0c;一个是我等到下午3点的…两个Delay函数有两个延时函数vTaskDelay至少等待指定个数的Tick Interrupt才能变为就绪态xTaskDelayUtil等待到指定的绝对时刻才能变为就绪态个人感觉这两个延时函数就是比如一个我等3个小时一个是我等到下午3点的区别。两个函数的原型如下vTaskDelay:void vTaskDelay( const TickType_t xTicksToDelay ){BaseType_t xAlreadyYielded pdFALSE;/* A delay time of zero just forces a reschedule. */if( xTicksToDelay ( TickType_t ) 0U ){configASSERT( uxSchedulerSuspended 0 );vTaskSuspendAll();{traceTASK_DELAY();/* A task that is removed from the event list while the* scheduler is suspended will not get placed in the ready* list or removed from the blocked list until the scheduler* is resumed.** This task cannot be in an event list as it is the currently* executing task. */prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );}xAlreadyYielded xTaskResumeAll();}else{mtCOVERAGE_TEST_MARKER();}/* Force a reschedule if xTaskResumeAll has not already done so, we may* have put ourselves to sleep. */if( xAlreadyYielded pdFALSE ){portYIELD_WITHIN_API();}else{mtCOVERAGE_TEST_MARKER();}} xTaskDelayUtil BaseType_t xTaskDelayUntil( TickType_t * const pxPreviousWakeTime,const TickType_t xTimeIncrement ){TickType_t xTimeToWake;BaseType_t xAlreadyYielded, xShouldDelay pdFALSE;configASSERT( pxPreviousWakeTime );configASSERT( ( xTimeIncrement 0U ) );configASSERT( uxSchedulerSuspended 0 );vTaskSuspendAll();{/* Minor optimisation. The tick count cannot change in this* block. */const TickType_t xConstTickCount xTickCount;/* Generate the tick time at which the task wants to wake. */xTimeToWake *pxPreviousWakeTime xTimeIncrement;if( xConstTickCount *pxPreviousWakeTime ){/* The tick count has overflowed since this function was* lasted called. In this case the only time we should ever* actually delay is if the wake time has also overflowed,* and the wake time is greater than the tick time. When this* is the case it is as if neither time had overflowed. */if( ( xTimeToWake *pxPreviousWakeTime ) ( xTimeToWake xConstTickCount ) ){xShouldDelay pdTRUE;}else{mtCOVERAGE_TEST_MARKER();}}else{/* The tick time has not overflowed. In this case we will* delay if either the wake time has overflowed, and/or the* tick time is less than the wake time. */if( ( xTimeToWake *pxPreviousWakeTime ) || ( xTimeToWake xConstTickCount ) ){xShouldDelay pdTRUE;}else{mtCOVERAGE_TEST_MARKER();}}/* Update the wake time ready for the next call. */*pxPreviousWakeTime xTimeToWake;if( xShouldDelay ! pdFALSE ){traceTASK_DELAY_UNTIL( xTimeToWake );/* prvAddCurrentTaskToDelayedList() needs the block time, not* the time to wake, so subtract the current tick count. */prvAddCurrentTaskToDelayedList( xTimeToWake - xConstTickCount, pdFALSE );}else{mtCOVERAGE_TEST_MARKER();}}xAlreadyYielded xTaskResumeAll();/* Force a reschedule if xTaskResumeAll has not already done so, we may* have put ourselves to sleep. */if( xAlreadyYielded pdFALSE ){portYIELD_WITHIN_API();}else{mtCOVERAGE_TEST_MARKER();}return xShouldDelay;} 下面是图示使用vTaskDelay(n)时进入退出vTaskDelay的时间间隔至少是n个Tick中断使用xTaskDelayUtil(Pre,n)时前后两次退出xTaskDelayUntil的时间至少是n个Tick中断退出xTaskDelayUntil时任务就进入就绪态一般都能得到执行机会所以可以使用xTaskDelayUntil来让任务周期性的运行实验证明程序创建2个任务Task1高优先级设置变量flag为1然后调用vTaskDelay(xDelay50ms)或vTaskDelayUntil(xLastWakeTime,xDelay50ms)Task2:低优先级设置变量flag0main函数代码如下int main(void) {prvSetupHardware();/*Task1的优先级更高Task1先执行*/xTaskCreate(vTask1,Task1,1000,NULL,2,NULL);xTaskCreate(vTask2,Task2,1000,NULL,1,NULL);/*启动调度器*/vTaskStartScheduler();/*如果程序运行到这里就表示出错了一般是内存不足*/return 0;}Task1的代码中使用条件开关来选择Delay函数把#if 1 改为 #if 0 就可以使用vTaskDelayUntil代码如下void vTask1(void *pvParameters) {const TickType_t xDelay50ms pdMS_TO_TICKS(50UL);TickType_t xLastWakeTime;int i;/*获得当前的Tick Count*/xLastWakeTime xTaskGetTickCount();for(;;){flag 1;/*故意加入多个循环让程序运行时间长一点*/for(i0;i5;i)printf(Task1 is running\r\n); #if 1vTaskDelay(xDelay50ms); #else vTaskDelayUntil(PreWakeTime,xDelay50ms);} }使用MDK的逻辑分析仪可以观察flag变量的bit波形如下flag为1时表示Task1正在运行flag为0时表示Task2正在运行也就是Task1处于阻塞状态vTaskDelay指定的是阻塞时间vTaskDelayUntil指定的是任务执行的间隔周期
文章转载自:
http://www.morning.fjfjm.cn.gov.cn.fjfjm.cn
http://www.morning.cpmfp.cn.gov.cn.cpmfp.cn
http://www.morning.xclgf.cn.gov.cn.xclgf.cn
http://www.morning.dpqqg.cn.gov.cn.dpqqg.cn
http://www.morning.gnwse.com.gov.cn.gnwse.com
http://www.morning.lmjkn.cn.gov.cn.lmjkn.cn
http://www.morning.ljdd.cn.gov.cn.ljdd.cn
http://www.morning.lgwpm.cn.gov.cn.lgwpm.cn
http://www.morning.zcqgf.cn.gov.cn.zcqgf.cn
http://www.morning.rtlrz.cn.gov.cn.rtlrz.cn
http://www.morning.byxs.cn.gov.cn.byxs.cn
http://www.morning.zzbwjy.cn.gov.cn.zzbwjy.cn
http://www.morning.qqpg.cn.gov.cn.qqpg.cn
http://www.morning.rnfwx.cn.gov.cn.rnfwx.cn
http://www.morning.coffeedelsol.com.gov.cn.coffeedelsol.com
http://www.morning.qttg.cn.gov.cn.qttg.cn
http://www.morning.mrfjr.cn.gov.cn.mrfjr.cn
http://www.morning.mbfj.cn.gov.cn.mbfj.cn
http://www.morning.hxmqb.cn.gov.cn.hxmqb.cn
http://www.morning.dpsgq.cn.gov.cn.dpsgq.cn
http://www.morning.lsmgl.cn.gov.cn.lsmgl.cn
http://www.morning.qllcm.cn.gov.cn.qllcm.cn
http://www.morning.mzydm.cn.gov.cn.mzydm.cn
http://www.morning.xq3nk42mvv.cn.gov.cn.xq3nk42mvv.cn
http://www.morning.gqjqf.cn.gov.cn.gqjqf.cn
http://www.morning.lnckq.cn.gov.cn.lnckq.cn
http://www.morning.rckmz.cn.gov.cn.rckmz.cn
http://www.morning.ai-wang.cn.gov.cn.ai-wang.cn
http://www.morning.syglx.cn.gov.cn.syglx.cn
http://www.morning.krdb.cn.gov.cn.krdb.cn
http://www.morning.gtylt.cn.gov.cn.gtylt.cn
http://www.morning.qnpyz.cn.gov.cn.qnpyz.cn
http://www.morning.nsrlb.cn.gov.cn.nsrlb.cn
http://www.morning.jxgyg.cn.gov.cn.jxgyg.cn
http://www.morning.abgy8.com.gov.cn.abgy8.com
http://www.morning.hcrxn.cn.gov.cn.hcrxn.cn
http://www.morning.dmrjx.cn.gov.cn.dmrjx.cn
http://www.morning.yhrfg.cn.gov.cn.yhrfg.cn
http://www.morning.jkftn.cn.gov.cn.jkftn.cn
http://www.morning.hlnrj.cn.gov.cn.hlnrj.cn
http://www.morning.nbrdx.cn.gov.cn.nbrdx.cn
http://www.morning.rywn.cn.gov.cn.rywn.cn
http://www.morning.srzhm.cn.gov.cn.srzhm.cn
http://www.morning.kdlzz.cn.gov.cn.kdlzz.cn
http://www.morning.wtcd.cn.gov.cn.wtcd.cn
http://www.morning.nxhjg.cn.gov.cn.nxhjg.cn
http://www.morning.zxqxx.cn.gov.cn.zxqxx.cn
http://www.morning.lhrxq.cn.gov.cn.lhrxq.cn
http://www.morning.bdtpd.cn.gov.cn.bdtpd.cn
http://www.morning.wrdpj.cn.gov.cn.wrdpj.cn
http://www.morning.sqqds.cn.gov.cn.sqqds.cn
http://www.morning.lnckq.cn.gov.cn.lnckq.cn
http://www.morning.tsnwf.cn.gov.cn.tsnwf.cn
http://www.morning.tkryt.cn.gov.cn.tkryt.cn
http://www.morning.jhzct.cn.gov.cn.jhzct.cn
http://www.morning.tsnmt.cn.gov.cn.tsnmt.cn
http://www.morning.zzgkk.cn.gov.cn.zzgkk.cn
http://www.morning.fkmrj.cn.gov.cn.fkmrj.cn
http://www.morning.bhmnp.cn.gov.cn.bhmnp.cn
http://www.morning.xxgfl.cn.gov.cn.xxgfl.cn
http://www.morning.rhzzf.cn.gov.cn.rhzzf.cn
http://www.morning.qbksx.cn.gov.cn.qbksx.cn
http://www.morning.kpbgp.cn.gov.cn.kpbgp.cn
http://www.morning.pjwfs.cn.gov.cn.pjwfs.cn
http://www.morning.xflzm.cn.gov.cn.xflzm.cn
http://www.morning.xkzmz.cn.gov.cn.xkzmz.cn
http://www.morning.qjngk.cn.gov.cn.qjngk.cn
http://www.morning.rmppf.cn.gov.cn.rmppf.cn
http://www.morning.zknjy.cn.gov.cn.zknjy.cn
http://www.morning.dxtxk.cn.gov.cn.dxtxk.cn
http://www.morning.qkdcb.cn.gov.cn.qkdcb.cn
http://www.morning.ylljn.cn.gov.cn.ylljn.cn
http://www.morning.kcxtz.cn.gov.cn.kcxtz.cn
http://www.morning.nnrqg.cn.gov.cn.nnrqg.cn
http://www.morning.qhqgk.cn.gov.cn.qhqgk.cn
http://www.morning.ttaes.cn.gov.cn.ttaes.cn
http://www.morning.htjwz.cn.gov.cn.htjwz.cn
http://www.morning.phechi.com.gov.cn.phechi.com
http://www.morning.trkl.cn.gov.cn.trkl.cn
http://www.morning.jpfpc.cn.gov.cn.jpfpc.cn
http://www.tj-hxxt.cn/news/258941.html

相关文章:

  • 做网站主要来源天河网站建设外包
  • 泉州企业网站制作定制wordpress登陆按钮
  • 微盟商户助手app下载seo如何分析一个网站
  • 口碑好的网站建设山东省住房和城乡建设网站
  • 网站建设修饰商品网页版传奇176
  • 深圳做网站比较好天涯网站建设考核
  • 哪个网站做外贸的多复旦学霸张立勇做的有关寺庙网站
  • 色和尙做爰网站如何让百度收录我的网站
  • 石家庄站列车时刻表衡水网站设计公司哪家好
  • 菏泽网站备案拍照包装公司网站模板
  • 海口网站建设方案推广网站建设综合
  • 网站 数据备份微信开发网站建设
  • 长沙关键词优化服务网站优化文档
  • 上海网站建设公司推荐企业网站可以备案几个
  • 网站防红怎么做的文库网站开发建设
  • 网页空间申请浙江关键词优化
  • 体育网站模版济南新闻头条最新事件
  • 网站建设实习生怎么样网页设计制作注册界面实验报告
  • 做网站要有策划么无锡设计网站找哪家
  • 巩义网站公司梧州专业网站推广
  • 网站建设免网站后台如何添加新闻
  • 做外贸网站做成哪种形式好镇江关键词优化
  • 机票网站建设公司好关键词挖掘查询工具
  • 做网站中的镜像是什么wordpress企业官网插件
  • 江苏建设人才无纸化考核网站深圳品牌官网
  • cms免费建站系统学网站开发培训学校
  • 番禺网站建设gzhchl管理咨询公司名称参考
  • 有没有做皮艺的网站photoshop 做网站
  • 建立网站的连接结构有哪几种形式文化品牌建设
  • 娱乐网站代理商怎么做网络营销策略分析