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.

PRD_Start more ???



OK, I understand I can call PRD_start from a SWI. Here are some more specifics of the issue we are seeing.

What  I want to know is if I am waiting for a hardware signal and start a one shot prd some where in a task, can the function for that one shot prd restart it self within the called PRD function without any problems?

Are there any issues if the time for this one shot prd is the same as the prd system tick?

I know delay time on these can be x-1 so it could get called on the next prd mgr tick and I was wondering if this would cause an issue.

We are seeing one shot prds used this way stop working after some period of time. It appears the start is issued but the prd is never called.

 

Example if a prd name is prdA and the function called is prdTimeout() and the prd time out is 1 ms same as the prd clock.

TaskX()

{

            ……

            prdStart(&prdA)

}

 

vid prdTimeout()

{

   if ( flag)

   {

         do something

  }

  else

  {

     PRD_start(&prdA)

  }

 Thanks

Maury