This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error while compileing example RTX51 tiny program

Hi there, Iam trying to get familiarized with the RTX51 Tiny
RTOS. I am trying the below example but iam getting
the following error after compilation
MYTASK.C(7): error C129: missing ';' before '{'
Am i missing something ? Please give me your suggestions......

#include<rtx51tny.h>
int counter0;
int counter1;

job0 _task_ 0{
        os_create_task(1);

        while(1){
         counter0++;
        }
}

job1 _task_ 1{
        while(1){
         counter1 ++;
        }
}

0