文件名称:ucos
- 所属分类:
- uCOS开发
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 9.27mb
- 下载次数:
- 0次
- 提 供 者:
- 丁**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
首先从main函数开始,下面是uC/OS-II main函数的大致流程:
main(){
OSInit()
TaskCreate(...)
OSStart()
}
首先是调用OSInit进行初始化,然后使用TaskCreate创建几个进程/Task,最后调用OSStart,操作系统就开始运行了。
- Call port specific initialization code */
#endif
OS_InitMisc() /* Initialize miscellaneous variables */
OS_InitRdyList() /* Initialize the Ready List */
OS_InitTCBList() /* Initialize the free list of OS_TCBs */
OS_InitEventList() /* Initialize the free list of
main(){
OSInit()
TaskCreate(...)
OSStart()
}
首先是调用OSInit进行初始化,然后使用TaskCreate创建几个进程/Task,最后调用OSStart,操作系统就开始运行了。
- Call port specific initialization code */
#endif
OS_InitMisc() /* Initialize miscellaneous variables */
OS_InitRdyList() /* Initialize the Ready List */
OS_InitTCBList() /* Initialize the free list of OS_TCBs */
OS_InitEventList() /* Initialize the free list of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ucos\1\frist\app_cfg.h
....\.\.....\Debug\example1.obj
....\.\.....\.....\example1.sbr
....\.\.....\.....\frist.bsc
....\.\.....\.....\frist.exe
....\.\.....\.....\frist.ilk
....\.\.....\.....\frist.pch
....\.\.....\.....\frist.pdb
....\.\.....\.....\os_cpu_c.obj
....\.\.....\.....\os_cpu_c.sbr
....\.\.....\.....\pc.obj
....\.\.....\.....\pc.sbr
....\.\.....\.....\ucos_ii.obj
....\.\.....\.....\ucos_ii.sbr
....\.\.....\.....\vc60.idb
....\.\.....\.....\vc60.pdb
....\.\.....\example1.c
....\.\.....\frist.dsp
....\.\.....\frist.dsw
....\.\.....\frist.ncb
....\.\.....\frist.opt
....\.\.....\frist.plg
....\.\.....\includes.h
....\.\.....\os_cfg.h
....\.\Ports\80x86\WIN32\VC\src\os_cpu.h
....\.\.....\.....\.....\..\...\os_cpu_c.c
....\.\.....\.....\.....\..\...\pc.c
....\.\.....\.....\.....\..\...\pc.h
....\.\Source\os_cfg_r.h
....\.\......\os_core.c
....\.\......\os_dbg_r.c
....\.\......\os_flag.c
....\.\......\os_mbox.c
....\.\......\os_mem.c
....\.\......\os_mutex.c
....\.\......\os_q.c
....\.\......\os_sem.c
....\.\......\os_task.c
....\.\......\os_time.c
....\.\......\os_tmr.c
....\.\......\ucos_ii.c
....\.\......\ucos_ii.h
....\OSStrar()函数之后情况.doc
....\software\example\app_cfg.h
....\........\.......\Debug\example.bsc
....\........\.......\.....\example.exe
....\........\.......\.....\example.ilk
....\........\.......\.....\example.pch
....\........\.......\.....\example.pdb
....\........\.......\.....\example1.obj
....\........\.......\.....\example1.sbr
....\........\.......\.....\example2.obj
....\........\.......\.....\example2.sbr
....\........\.......\.....\example3.obj
....\........\.......\.....\example3.sbr
....\........\.......\.....\os_cpu_c.obj
....\........\.......\.....\os_cpu_c.sbr
....\........\.......\.....\pc.obj
....\........\.......\.....\pc.sbr
....\........\.......\.....\ucos_ii.obj
....\........\.......\.....\ucos_ii.sbr
....\........\.......\.....\vc60.idb
....\........\.......\.....\vc60.pdb
....\........\.......\example.dsp
....\........\.......\example.dsw
....\........\.......\example.ncb
....\........\.......\example.opt
....\........\.......\example.plg
....\........\.......\example1.c
....\........\.......\example2.c
....\........\.......\example3.c
....\........\.......\includes.h
....\........\.......\os_cfg.h
....\........\.......\task_manerge.c
....\........\.......\task_ready_table.c
....\........\os_time.c
....\........\Ports\80x86\WIN32\VC\src\os_cpu.h
....\........\.....\.....\.....\..\...\os_cpu_c.c
....\........\.....\.....\.....\..\...\pc.c
....\........\.....\.....\.....\..\...\pc.h
....\........\Source\os_cfg_r.h
....\........\......\os_core.c
....\........\......\os_dbg_r.c
....\........\......\os_flag.c
....\........\......\os_mbox.c
....\........\......\os_mem.c
....\........\......\os_mutex.c
....\........\......\os_q.c
....\........\......\os_sem.c
....\........\......\os_task.c
....\........\......\os_time.c
....\........\......\os_tmr.c
....\........\......\ucos_ii.c
....\........\......\ucos_ii.h
....\........\新建 文本文档.txt
....\tcb.doc
....\ucos-II源码(邵贝贝).chm
....\ucos程序任务建立过程.doc
....\中断关闭的原因.doc
....\任务控制链表.doc
....\.\.....\Debug\example1.obj
....\.\.....\.....\example1.sbr
....\.\.....\.....\frist.bsc
....\.\.....\.....\frist.exe
....\.\.....\.....\frist.ilk
....\.\.....\.....\frist.pch
....\.\.....\.....\frist.pdb
....\.\.....\.....\os_cpu_c.obj
....\.\.....\.....\os_cpu_c.sbr
....\.\.....\.....\pc.obj
....\.\.....\.....\pc.sbr
....\.\.....\.....\ucos_ii.obj
....\.\.....\.....\ucos_ii.sbr
....\.\.....\.....\vc60.idb
....\.\.....\.....\vc60.pdb
....\.\.....\example1.c
....\.\.....\frist.dsp
....\.\.....\frist.dsw
....\.\.....\frist.ncb
....\.\.....\frist.opt
....\.\.....\frist.plg
....\.\.....\includes.h
....\.\.....\os_cfg.h
....\.\Ports\80x86\WIN32\VC\src\os_cpu.h
....\.\.....\.....\.....\..\...\os_cpu_c.c
....\.\.....\.....\.....\..\...\pc.c
....\.\.....\.....\.....\..\...\pc.h
....\.\Source\os_cfg_r.h
....\.\......\os_core.c
....\.\......\os_dbg_r.c
....\.\......\os_flag.c
....\.\......\os_mbox.c
....\.\......\os_mem.c
....\.\......\os_mutex.c
....\.\......\os_q.c
....\.\......\os_sem.c
....\.\......\os_task.c
....\.\......\os_time.c
....\.\......\os_tmr.c
....\.\......\ucos_ii.c
....\.\......\ucos_ii.h
....\OSStrar()函数之后情况.doc
....\software\example\app_cfg.h
....\........\.......\Debug\example.bsc
....\........\.......\.....\example.exe
....\........\.......\.....\example.ilk
....\........\.......\.....\example.pch
....\........\.......\.....\example.pdb
....\........\.......\.....\example1.obj
....\........\.......\.....\example1.sbr
....\........\.......\.....\example2.obj
....\........\.......\.....\example2.sbr
....\........\.......\.....\example3.obj
....\........\.......\.....\example3.sbr
....\........\.......\.....\os_cpu_c.obj
....\........\.......\.....\os_cpu_c.sbr
....\........\.......\.....\pc.obj
....\........\.......\.....\pc.sbr
....\........\.......\.....\ucos_ii.obj
....\........\.......\.....\ucos_ii.sbr
....\........\.......\.....\vc60.idb
....\........\.......\.....\vc60.pdb
....\........\.......\example.dsp
....\........\.......\example.dsw
....\........\.......\example.ncb
....\........\.......\example.opt
....\........\.......\example.plg
....\........\.......\example1.c
....\........\.......\example2.c
....\........\.......\example3.c
....\........\.......\includes.h
....\........\.......\os_cfg.h
....\........\.......\task_manerge.c
....\........\.......\task_ready_table.c
....\........\os_time.c
....\........\Ports\80x86\WIN32\VC\src\os_cpu.h
....\........\.....\.....\.....\..\...\os_cpu_c.c
....\........\.....\.....\.....\..\...\pc.c
....\........\.....\.....\.....\..\...\pc.h
....\........\Source\os_cfg_r.h
....\........\......\os_core.c
....\........\......\os_dbg_r.c
....\........\......\os_flag.c
....\........\......\os_mbox.c
....\........\......\os_mem.c
....\........\......\os_mutex.c
....\........\......\os_q.c
....\........\......\os_sem.c
....\........\......\os_task.c
....\........\......\os_time.c
....\........\......\os_tmr.c
....\........\......\ucos_ii.c
....\........\......\ucos_ii.h
....\........\新建 文本文档.txt
....\tcb.doc
....\ucos-II源码(邵贝贝).chm
....\ucos程序任务建立过程.doc
....\中断关闭的原因.doc
....\任务控制链表.doc