19-10-2016, 02:15 PM
Typically, on embedded systems with a simple RTOS, main is used as background task, so it never returns:
Would this be a candidate for your deviation permits document?
Code:
int main(void)
{
Setup_Rtos();
for (;;)
{
Background_Task();
}
return 0;// Violates MISRA C 2012 2.1: unreachable code
}
Would this be a candidate for your deviation permits document?
<t></t>