In SCM stc89c58 SCM ucosii transplantation of good code above, through the led test program, easy to use, everyone download and give it a try.
File list:
uCOS-II_STC
..........\OutPut
..........\......\uCOS-II.OMF
..........\......\uCOS-II.plg
..........\......\uCOS_II.lst
..........\......\uCOS_II.obj
..........\Source
..........\......\INCLUDES.H
..........\......\main.c
..........\uCosii
..........\......\OS_CFG.H
..........\......\OS_CORE.C
..........\......\OS_CPU.H
..........\......\OS_CPU_A.ASM
..........\......\OS_CPU_C.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
..........\......\STARTUP.A51
..........\......\uCOS_II.C
..........\......\uCOS_II.H
..........\uCosii_51.uvopt
..........\uCosii_51.uvproj
..........\uCosii_51_uvopt.bak
..........\uCosii_51_uvproj.bak