摘要
为了减少嵌入式实时操作系统μC/OS-Ⅱ移植在内存匮乏的微控制器上的内存需求并实现其对整个系统设备的管理,提出了μC/OS-Ⅱ的优化移植和设备驱动框架设计;优化移植方式对任务栈和中断栈进行分离减少了系统的内存需求,为所有的中断服务提供唯一的入口使μC/OS-Ⅱ具有中断管理功能;设备驱动框架为设备管理提供统一的规范和API函数从而方便驱动开发和设备操作,通过中断下半部推后执行的机制提高了系统的实时性;测试表明,优化移植后能节省约50%的内存,设备驱动框架能够对设备有效且可靠管理。
In order to reduce running memory requirements of the RTOS/μC/OS-Ⅱ port to MCU with small running memory, and a chieve the/μC/OS-Ⅱ manage the entire system devices, a improved porting method and a design of device driver framework based on μC/OS-Ⅱ were proposed. The improved porting method can reduce the /μC/OS-Ⅱ running memory through separating system stack from task stacks, and it makes/μC/OS-Ⅱ have interrupts management features through providing all interrupts the only entrance. The device driver framework for the operation of devices provides a unified API function so it can develop drivers and manage devices effectively, it also can prove system's real-time performance by the mechanism of pushing back interrupt bottom half. Test results show that it can save about 50% running memory, and be able to manage devices validly and reliably.
出处
《计算机测量与控制》
CSCD
北大核心
2012年第9期2501-2503,2506,共4页
Computer Measurement &Control
基金
浙江省公益性技术应用研究计划项目(2010C31054)