Task implemented in SWC in Autosar classic architecture

501 Views Asked by At

I am working in a Project with autosar 4.3. I am refering to an old version of the project where I can find that in a SW_C it is created a Task and using some OS primitive on it!

is it safe or allowed in the autosar SW application component to define /configure task in this level? Tasks should not be defined in the level of the RTE? example:

TASK (diagQueuedJob)
{  
    ...
    OSwaiteven();
    OSgetevent();
    ....
}

Thanks for explanation

1

There are 1 best solutions below

0
On

I am not sure about the exact reference, but this is not allowed. A application software component shall only use the interfaces generated by the RTE.

However, if you have a Complex Device Driver, this is allowed. However, good practice would be to minimize this, because else you could put your whole legacy application in a single Complex Device Driver and call it AUTOSAR compliant.