Preface
ucos是一个实时内核操作系统
Ucos vs ucosii:
•一个固定大小的块内存管理器”
•服务过程中允许其任务暂停执行一定的时间(规定的小时,分钟,秒和毫秒)
•用户可定义的callout时调用的函数:创建一个任务,一个任务被删除,执行上下文切换,一个时钟周期。
•一个新的任务创建函数,提供额外的功能
•堆栈检查
•一个函数返回版本的副本
•更多。
增加了固定大小的内存管理器、用户可定义的任务创建、任务删除、任务切换和系统勾选、支持TCB扩展、堆栈检查等等。
Ucos特点:
源代码:
代码既干净又非常一致。
便携的:
将汇编语言保持在最低限度,以便使uc /OS-II易于移植到其他处理器。
可衡量性:
减少了所需的代码和数据空间。
多重任务:
当前版本的软件会保留其中的8个任务供系统使用。这使应用程序最多有56个任务。每个任务都有一个唯一的优先级,这就意味着在每个任务上不能执行循环调度。因此,有64个优先级。
确定性:
始终可以知道在执行一个函数或服务时,将花费多少时间。
任务栈:
每个任务都需要它自己的堆栈,但是,ucos允许每个任务有不同的堆栈大小。
之后会记录下各个文件的代码中大概的函数和一些细节吧,本章是一个宏观的和性质上的东西 ,之后会记录代码的细节,深入学习一个操作系统的细节的部分,为将来的学习打下基础。
最后的最后,是对自己的一些寄语吧,希望能够坚持写博客和自我总结的习惯吧,日拱一卒,功不唐捐!