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

ARM RTOS help required urgent

hello friends
i have written the code for ARM RTOS, i have used same priority for all of my 4 task, its working fine

my problem is when i change the priority in the code then all task's are not executing simultaneously....
please any one help

Parents Reply Children
  • here is my updated working code, if i change the priority this code will not do all of the task
    can any one help for assigning other priority for this code to work for all task

    void job1 (void) __task
    {

    os_tsk_prio_self (2);
    tsk1 = os_tsk_self ();
    tsk2 = os_tsk_create (job2,2);
    tsk3 = os_tsk_create (job3,3);
    tsk4 = os_tsk_create (job4,3);
    buzzer();
    counter1++;
    os_dly_wait (5);
    }

    void job2 (void) __task
    {

    ADC();
    counter2++;
    os_dly_wait (10);
    }

    void job3 (void) __task
    {

    SPI();
    }

    void job4 (void) __task
    {

    SCI();
    }

    int main (void)
    {

    os_sys_init (job1);
    }