资 源 简 介
这个例子如果运行,将在仿真的PC窗口中的第1,2,3行显示一些信息后,在随机位置显示 1 ~ 5 .由于keil c51默认不支持重入函数,它的重入函数使用仿真的重入栈而不使用系统栈,而Small RTOS 51没有进行重入栈管理,所以在TaskA~TaskE虽然及其相似,但不能合并.
(2)编译时会有5个警告,其中一个是因为没有使用一个系统函数OSSendSignal引起,它可以忽略.另4个是禁止任务间变量覆盖分析引起,必须忽略.感谢网友John X. Liu,在这个例子中我使用了他编写的仿真(dllPc51Emu.dll),这个dll原来是为他移植的Ucos-ii for keil c51的例子编写.-If you are running this example, will the PC emulation window, the first 1,2,3-line display some information, at random locations show " 1 " ~ " 5" . Keil c51 as the default does not support the re-entry function, which re- into the function of the weight stack instead of using the simulation using the system stack, while the Small RTOS 51 not been re-stack management, and so TaskA ~ TaskE though its similar, but not combined. (2) compile-time there will be five warnings, One of them is because there is no cause to use a system function OSSendSignal, it can be ignored. The other four are prohibited between the variables covered analyze the task to be ignored. thank User