首页 | 本学科首页   官方微博 | 高级检索  
     

嵌入式系统裸机的任务调度应用设计
引用本文:郭坤,侯冬冬,孙常青,马建辉.嵌入式系统裸机的任务调度应用设计[J].单片机与嵌入式系统应用,2018(6):81-83.
作者姓名:郭坤  侯冬冬  孙常青  马建辉
作者单位:1. 齐鲁工业大学(山东省科学院),济南 250353;2. 山东省科学院自动化研究所;3. 山东省汽车电子技术重点实验室
基金项目:山东省重点研发计划"移动互联新能源汽车车内信息安全技术研究与应用";项目(2017GGX10145),山东省重点研发计划(重大关键技术)2016ZDJS03A04,山东省重点研发计划(2016GGC01023)
摘    要:在中低端 MCU的嵌入式系统软件设计中,为了节省有限的RAM资源,只能采用不加操作系统的裸机方式.为了借鉴操作系统的任务调度机制,在裸机开发方式中,设计一种不带任务堆栈的逻辑任务,按照具体应用划分若干逻辑任务,这些逻辑任务共享一个系统堆栈,每个逻辑任务都有自己的事件队列和任务处理程序,任务之间通过发送事件的形式进行通信.这种方案既避免了加载操作系统对系统RAM资源和MCU计算资源的消耗,又能够实现类似于操作系统的任务调度机制,实现软件的模块化,从而设计出低耦合、高内聚的软件.

关 键 词:嵌入式系统  操作系统  系统堆栈  逻辑任务  embedded  system  operating  system  system  stack  logic  task

Design of Task Scheduling Application for Bare Metal Embedded System
Guo Kun,Hou Dongdong,Sun Changqing,Ma Jianhui.Design of Task Scheduling Application for Bare Metal Embedded System[J].Microcontrollers & Embedded Systems,2018(6):81-83.
Authors:Guo Kun  Hou Dongdong  Sun Changqing  Ma Jianhui
Abstract:In the embedded system software design where only the low-end MCU can be selected,bare metal operation without operating system can be used to save limited RAM resources.In order to learn from the operating system's task scheduling mechanism,in the bare metal mode,a logical task without a task stack is designed, and several logical tasks are divided according to specific applications.These logical tasks share a system stack.Each logical task has its own event queue and task handler,and communicates by sending events.Such a scheme not only avoids loading the operating system to consume system RAM resources and MCU computing resources,but also ena-bles a task scheduling mechanism similar to the operating system to realize software modularization,thereby a software with low cou-pling and high cohesion is designed.
Keywords:
本文献已被 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号