Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Timeout in SEM_Pend

$
0
0

Hi

I would like to use the timeout function for SEM_Pend instead of SYS_FOREVER.

I seen the API on SEM_Pend where timeout requires the system clock ticks.

My DSP Clock is running at 300Mhz, may I know what is the calculation if I would like to timeout for 1 second.

Thanks.

C Interface
Syntax
status = SEM_pend(sem, timeout);
Parameters
SEM_Handle sem; /* semaphore object handle */
Uns timeout; /* return after this many system clock ticks */
Return Value
Bool status; /* TRUE if successful, FALSE if timeout */


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>