首页> 中文期刊> 《计算机测量与控制》 >μC/OS-Ⅱ的优化移植和设备驱动框架设计

μC/OS-Ⅱ的优化移植和设备驱动框架设计

         

摘要

为了减少嵌入式实时操作系统μC/OS-Ⅱ移植在内存匮乏的微控制器上的内存需求并实现其对整个系统设备的管理,提出了μC/OS-Ⅱ的优化移植和设备驱动框架设计;优化移植方式对任务栈和中断栈进行分离减少了系统的内存需求,为所有的中断服务提供唯一的入口使μC/OS-Ⅱ具有中断管理功能;设备驱动框架为设备管理提供统一的规范和API函数从而方便驱动开发和设备操作,通过中断下半部推后执行的机制提高了系统的实时性;测试表明,优化移植后能节省约50%的内存,设备驱动框架能够对设备有效且可靠管理.%In order to reduce running memory requirements of the RTOS fiC/OS- II port to MCU with small running memory, and a-chieve the uC/OS- II manage the entire system devices, a improved porting method and a design of device driver framework based on uC/OS -II were proposed. The improved porting method can reduce the uC/OS- II running memory through separating system stack from task stacks, and it makes uC/OS- H 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.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号