嵌入式系统裸机的任务调度应用设计  被引量:5

Design of Task Scheduling Application for Bare Metal Embedded System

在线阅读下载全文

作  者:马建辉 孙常青[1,2,3] 侯冬冬 郭坤[1,2,3] Ma Jlanhui;Sun Changqing;Hou Dongdong;Guo Kun(Qilu University of Technology(Shandong Academy of Sciences),Jinan 250353,China;Automatic Institute of Shandong Academy;Shandong Provincial Key Laboratory of Automotive Electronics Technology)

机构地区:[1]齐鲁工业大学(山东省科学院),济南250353 [2]山东省科学院自动化研究所 [3]山东省汽车电子技术重点实验室

出  处:《单片机与嵌入式系统应用》2018年第6期81-83,共3页Microcontrollers & Embedded Systems

基  金:山东省重点研发计划"移动互联新能源汽车车内信息安全技术研究与应用";项目编号:2017GGX10145;山东省重点研发计划(重大关键技术)2016ZDJS03A04;山东省重点研发计划(2016GGC01023)

摘  要:在中低端MCU的嵌入式系统软件设计中,为了节省有限的RAM资源,只能采用不加操作系统的裸机方式。为了借鉴操作系统的任务调度机制,在裸机开发方式中,设计一种不带任务堆栈的逻辑任务,按照具体应用划分若干逻辑任务,这些逻辑任务共享一个系统堆栈,每个逻辑任务都有自己的事件队列和任务处理程序,任务之间通过发送事件的形式进行通信。这种方案既避免了加载操作系统对系统RAM资源和MCU计算资源的消耗,又能够实现类似于操作系统的任务调度机制,实现软件的模块化,从而设计出低耦合、高内聚的软件。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 enables a task scheduling mechanism similar to the operating system to realize software modularization,thereby a software with low coupling and high cohesion is designed.

关 键 词:嵌入式系统 操作系统 系统堆栈 逻辑任务 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象