目录
嵌入式 RTOS.................................................................................................................3
1.
嵌入式系统基本模型......................................................................................3
2.
RTOS 设计原则...............................................................................................3
3.
GPOS 与 RTOS ...............................................................................................3
4.
嵌入式开发模式..............................................................................................3
5.
(不)可重入..................................................................................................4
6.
互斥条件..........................................................................................................4
7.
临界状态..........................................................................................................4
uC/OS-II 基本介绍........................................................................................................5
1.
uC/OS-II 文件结构..........................................................................................5
2.
uC/OS-II 组成部分..........................................................................................5
3.
uC/OS-II 任务状态..........................................................................................6
uC/OS-II 系统核心........................................................................................................6
1.
uC/OS-II 任务调度..........................................................................................6
(1)
uC/OS-II 调度算法 ...............................................................................6
(2)
任务就绪表 ...........................................................................................6
(3)
任务级任务调度 ...................................................................................7
(4)
中断级任务调度 ...................................................................................7
(5)
调度器上锁与解锁 ...............................................................................8
(6)
中断管理函数 .......................................................................................9
(7)
中断相关问题 .......................................................................................9
2.
uC/OS-II 系统启动........................................................................................10
(1)
初始化函数 OSInit()...........................................................................10
(2)
启动函数 OSStart().............................................................................11
(3)
统计任务 OSTaskStat .........................................................................11
3.
uC/OS-II 系统时钟........................................................................................11
4.
uC/OS-II 事件管理........................................................................................12
(1)
事件控制块 .........................................................................................12
(2)
ECB 管理机制 ....................................................................................12
(3)
ECB 管理函数 ....................................................................................12
uC/OS-II 任务管理......................................................................................................13
1.
C 可执行代码结构........................................................................................13
2.
任务结构........................................................................................................13
3.
任务栈............................................................................................................14
4.
任务控制块....................................................................................................14
(1)
TCB 描述 ............................................................................................14
(2)
TCB 主要成员 ....................................................................................14
(3)
TCB 全局变量 ....................................................................................14
5.
任务状态切换................................................................................................14
6.
任务管理函数................................................................................................15
uC/OS-II 通信与同步..................................................................................................15