This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is it valid for a one shot PRD function to start itself again inside the PRD?
Example if a prd name is prdA and the function called is prdTimeout()
vid prdTimeout()
{
if ( flag)
{
do something
}
else
{
PRD_start(&prdA)
}
Yes, this is legal. A PRD function is considered a SWI thread. The API Guide has a table that lists all the functions and whether it's legal to call them from TSKs, SWIs, and HWIs. The function PRD_start can be called from all of them.