程序如下:
#pragma code debug objectextend
#include<Rtx51tny.h>
int counter0;
int counter1;
int counter2;
job0() _task_ 0
{
os_create_task (1);
os_create_task (2);
while(1)
{
counter0++;
}
}
job1() _task_ 1
{
while(1)
{
counter1++;
}
}
job2() _task_ 2
{
while(1)
{
counter2++;
}
}
本人的RTX51TINY是用的KILL1.23的,但我把他用在了KILL6.02上,运行6.02
自带列子Traffic.uv2仿真和编译通过。