Introduction - If you have any usage issues, please Google them yourself
A program is my own transplant, carried out using only soft KEIL simulation, testing did not find the problem. Support from any one of interrupt service routine release semaphore. 2 of this code as a reference and learning to use, if in the use of the process of loss, I no responsibility. 3 of this code as a reference and learning to use, because inside has UCOS-II, if we as a commercial use, please pay uCOS welcomes U.S. test, in practice, testing about more than make a suggestion. Thank you, I will in accordance with the first U.S. test results to solve the problem. The previous version has already found loopholes in the amendment has passed the test on STM32F103CBT6:
Packet : 27796735ucos_for_stm32_v2.rar filelist
readme.txt
ucos\config.h
ucos\hwinit.c
ucos\hwinit.h
ucos\led.c
ucos\led.h
ucos\main.c
ucos\main.h
ucos\readme.txt
ucos\STM32F10x.s
ucos\stm32f10x_conf.h
ucos\stm32f10x_it.c
ucos\stm32f10x_it.h
ucos\ucosl.Opt
ucos\ucosl.Uv2
ucos\ucosl_STM32F10x Release.dep
ucos\ucosl_Uv2.Bak
ucos\uCOSsrc\cpu\app_cfg.h
ucos\uCOSsrc\cpu\os_cfg.h
ucos\uCOSsrc\cpu\OS_CPU.h
ucos\uCOSsrc\cpu\OS_CPU_A.s
ucos\uCOSsrc\cpu\OS_CPU_C.c
ucos\uCOSsrc\cpu\复件 OS_CPU_A.s
ucos\uCOSsrc\cpu\复件 OS_CPU_C.c
ucos\uCOSsrc\os_core.c
ucos\uCOSsrc\os_dbg_r.c
ucos\uCOSsrc\os_flag.c
ucos\uCOSsrc\os_mbox.c
ucos\uCOSsrc\os_mem.c
ucos\uCOSsrc\os_mutex.c
ucos\uCOSsrc\os_q.c
ucos\uCOSsrc\os_sem.c
ucos\uCOSsrc\os_task.c
ucos\uCOSsrc\os_time.c
ucos\uCOSsrc\os_tmr.c
ucos\uCOSsrc\ucos_ii.c
ucos\uCOSsrc\ucos_ii.h
ucos\uCOSsrc\cpu
ucos\uCOSsrc
ucos