ucosii操作系统代码学习之路——前言部分

Preface
ucos是一个实时内核操作系统

Ucos vs ucosii:
•一个固定大小的块内存管理器”
•服务过程中允许其任务暂停执行一定的时间(规定的小时,分钟,秒和毫秒)
•用户可定义的callout时调用的函数:创建一个任务,一个任务被删除,执行上下文切换,一个时钟周期。
•一个新的任务创建函数,提供额外的功能
•堆栈检查
•一个函数返回版本的副本
•更多。

增加了固定大小的内存管理器、用户可定义的任务创建、任务删除、任务切换和系统勾选、支持TCB扩展、堆栈检查等等。

Ucos特点:
源代码:
代码既干净又非常一致。
便携的:
将汇编语言保持在最低限度,以便使uc /OS-II易于移植到其他处理器。
可衡量性:
减少了所需的代码和数据空间。
多重任务:
当前版本的软件会保留其中的8个任务供系统使用。这使应用程序最多有56个任务。每个任务都有一个唯一的优先级,这就意味着在每个任务上不能执行循环调度。因此,有64个优先级。
确定性:
始终可以知道在执行一个函数或服务时,将花费多少时间。
任务栈:
每个任务都需要它自己的堆栈,但是,ucos允许每个任务有不同的堆栈大小。

之后会记录下各个文件的代码中大概的函数和一些细节吧,本章是一个宏观的和性质上的东西 ,之后会记录代码的细节,深入学习一个操作系统的细节的部分,为将来的学习打下基础。

最后的最后,是对自己的一些寄语吧,希望能够坚持写博客和自我总结的习惯吧,日拱一卒,功不唐捐!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
\SOFTWARE The main directory from the root where all software-related files are placed. \SOFTWARE\BLOCKS The main directory where all ‘Building Blocks’ are located. With μC/OS-II, I included a ‘building block’ that handles DOS-type compatible functions that are used by the example code. \SOFTWARE\BLOCKS\TO This directory contains the files for the TO utility (see Appendix E, TO). The source file is TO.C and is found in the \SOFTWARE\TO\SOURCE directory. The DOS executable file (TO.EXE) is found in the \SOFTWARE\TO\EXE directory. Note that TO requires a file called TO.TBL which must reside on your root directory. An example of TO.TBL is also found in the \SOFTWARE\TO\EXE directory. You will need to move TO.TBL to the root directory if you are to use TO.EXE. \SOFTWARE\uCOS-II The main directory where all μC/OS-II files are located. \SOFTWARE\uCOS-II\EX1_x86L This directory contains the source code for EXAMPLE #1 (see section 1.07, Example #1) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\EX2_x86L This directory contains the source code for EXAMPLE #2 (see section 1.08, Example #2) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\EX3_x86L This directory contains the source code for EXAMPLE #3 (see section 1.09, Example #3) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\Ix86L This directory contains the source code for the processor dependent code (a.k.a. the port) of μC/OS-II for an 80x86 Real-Mode, Large Model processor. \SOFTWARE\uCOS-II\SOURCE This directory contains the source code for processor independent portion of μC/OS-II. This code is fully portable to other processor architectures.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值