首页> 中文期刊> 《电子设计工程》 >μC/OS-Ⅱ在微处理器LM3S8962上的移植

μC/OS-Ⅱ在微处理器LM3S8962上的移植

         

摘要

Based on ARM Cortex-M3 microprocessor system construction which has the extensive and applied foreground,this paper made transplantation of μC/OS-Ⅱ on LM3S8962.Through analyzing the structure of LM3S8962 and μC/OS-Ⅱ,combined with the characteristic of ARM Cortex-M3,this paper introduced how to transplant μC/OS-Ⅱ operating system on LM3S8962 processor,and some basic problems in the transplantation were also mentioned.Some partial transport functions were provided with code, specially PendSV was used as software interruption to task switch.The functions that we didn't provide the code was also described by fake code. The test results show that the system can accomplish task switching correctly when clock frequency is 20Hz. That means this system runs correctly and reaches the destination.%基于具有广泛应用前景的ARM Codex-M3微处理器体系结构,将μC/OS-Ⅱ实时操作系统移植到微处理器LM3S8962.通过分析微处理器LM3S8962和μC/OS-Ⅱ内核结构,并且结合ARM Codex-M3体系特点,利用ARMCortex-M3所固有的嵌套向量中断控制器(NVIC)和Thumb-2指令集体系结构(ISA),完成了移植μC/OS-Ⅱ所需要的函数的编写,宏的定义和任务堆栈的实现,特别是利用ARM Codex-M3所提供的新型中断-可挂起系统调用(PendSV)作为实时系统完成任务切换的软中断.给出了部分移植函数的代码,未给出代码的函数也对函数结构进行了详细的描述.通过对移植进行测试,结果表明在时钟频率为20 Hz的情况下系统运行正常,能够正常的完成任务切换,实现了移植的目的.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号