基于STM32的嵌入式操作系统程序设计及实现毕业设计.doc
文本预览下载声明
摘 要
STM32硬件平台及μC/OS-II的移植需求;最后,在μC/OS-II上开发LCD,LED,按键KEY等应用程序,并对多任务系统调试分析。主要研究结论如下:
(1)μC/OS-II操作系统主要分为任务管理、内存管理和时间管理三大部分,其间通信是通过消息队列和消邮箱。
(2)μC/OS-II移植主要在OS_CPU.H,OS_CPU_C.C,OS_CPU_A.ASM三个文件中,涉及到数据类型、堆栈、中断定义和任务切换等。
(3)应用程序设计优先级分配要合理,硬件平台初始化模块化处理。
关键词:嵌入式系统;μC/OS-II移植
Abstract
With the progress of science and technology constantly, advanced industrial production to more complex, the operating system μC/OS-II is efficient, stable, reliable, energy saving system, widely used in the security, and consumer electronics. And based on the STM32 architecture Cortex-M3 framework is a superior cost-effective new microprocessor, μC/OS-II transplantation to STM32 can play its efficient performance, thus in social production and create a lot of useful and affordable electronic product, bring convenience to our lives.
This article main research content is μC/OS-II operating system theory analysis, method of transplantation, application design and debugging of the simulation implementation. First of all, the theoretical analysis of μC/OS-II, research the actual application and system structure; Second, analysis of STM32 hardware platform and the demand μC/OS-II transplantation. Finally, on the μC/OS-II development of LCD, LED, button KEY applications, and analysis of multitasking system debugging. Main research conclusion is as follows:
(1) μC/OS-II operating system consists of three major task management, memory management and time management, in which communication is through the message queue and email.
(2) μC/OS-II transplantation mainly in OS_CPU_C.C, OS_CPU_A.ASM file, OS_CPU.H, three involves the data type definition and task switching etc, stack, interrupt.
(3)The application design to the allocation of priorities, initialize the modular processing hardware platform.
Key words: embedded system; μC/OS-II; transplant
目 录
1 概 述 1
1.1 研究的目的及意义 1
1.2 国内外研究状况综述 1
1.3 研究的主要内容 2
2 3
2.1 μC/OS-II各模块的基本功能 3
2.2 STM32上移植方法 7
3 屏程序设计及调试 12
3.1 工具概述 12
3.2 硬件结构 13
3.3 C程序设
显示全部