目录
1 概述 ........................................................................................... 1
1.1 关于 CooCox CoOS ............................................................... 1
1.2 CooCox CoOS 入门指南 .......................................................... 3
2 任务管理 ..................................................................................... 9
2.1 任务 ................................................................................... 9
2.2 任务状态 ............................................................................10
2.3 任务控制块 ..........................................................................11
2.4 任务就绪链表 .......................................................................14
2.5 任务调度 ............................................................................15
2.6 临界区 ...............................................................................17
2.7 中断 ..................................................................................18
3 时间管理 ....................................................................................19
3.1 系统节拍 ............................................................................19
3.2 延时管理 ............................................................................21
3.3 软件定时器 ..........................................................................22
4 内存管理 ....................................................................................24
4.1 静态内存分配 .......................................................................24
4.2 动态内存分配 .......................................................................25
4.3 堆栈溢出检查 .......................................................................29
5 任务间的同步与通信........................................................................30
5.1 任务间的同步 .......................................................................30
5.2 任务间的通信 .......................................................................35
6 API 手册 .....................................................................................38
6.1 系统管理 ............................................................................38
6.2 任务管理 ............................................................................44
6.3 时间管理 ............................................................................55
6.4 软件定时器 ..........................................................................59
6.5 内存管理 ............................................................................66
6.6 互斥区域 ............................................................................73
6.7 信号量 ...............................................................................76
6.8 邮箱 ..................................................................................83
6.9 消息队列 ............................................................................92
6.10 事件标志 ......................................................................... 101
6.11 系统工具 ......................................................................... 113
6.12 其它 .............................................................................. 116