【第3章】嵌入式软件模型讲述.pptVIP

  • 0
  • 0
  • 约1.02万字
  • 约 48页
  • 2017-03-05 发布于湖北
  • 举报
【第3章】嵌入式软件模型讲述

* * * * * * * * * * * * * * * * * * * * * * * * 3.3 Function Queue Scheduling模型 void interrupt HandleDeviceA(void) { !! Take care of Device A QueueAppend(functionsQueue, FunctionA); } void interrupt HandleDeviceB(void) { !! Take care of Device B QueueAppend(functionsQueue, FunctionB); } void FunctionA(void) { !! Handle actions required by device A } void FunctionB(void) { !! Handle actions required by device B } Queue functionsQueue; void main(void) { while(TRUE) { while(QueueHasItems(functionsQueue)) !! Call first function on queue !! Remove the function from

文档评论(0)

1亿VIP精品文档

相关文档