嵌入式常用函数手册.docVIP

  • 3
  • 0
  • 约 12页
  • 2015-09-03 发布于安徽
  • 举报
任务管理?1?OSTaskCreate()???????? 建立一个新任务。任务的建立可以在多任务环境启动之前,也可以在正在运行的任务中建立。中断处理程序中不能建立任务。一个任务可以为无限循环的结构。函数原型:INT8U?OSTaskCreate(void?(*task)(void?*pd),?void?*pdata,?OS_STK?*ptos,?INT8U?prio);参数说明:task?是指向任务代码首地址的指针。?????pdata?指向一个数据结构,该结构用来在建立任务时向任务传递参数。?????ptos?is?a?pointer?to?the?tasks?top?of?stack.?If?the?configuration?constant?OS_STK_GROWTH?is?set?to?1,?the?stack?is?assumed?to?grow?downward?(i.e.?from?high?memory?to?low?memory).?pstk?will?thus?point?to?the?highest?(valid)?memory?location?of?the?stack.?If?OS_STK_GROWTH?is?set?to?0,?pstk?will?point?to?the?lowest?memory?location?of?the?stack?an

文档评论(0)

1亿VIP精品文档

相关文档