*(STOPWATCH_INFO*)ClientHandle ;
switch ( (u32)Event )
{
/* stopwatch countdown timeout event */
case ADI_RTC_EVENT_STOPWATCH:
{
/* increment the stopwatch event counter */
SWEventCounter++;
/* use the fields of the data structure
to see whether we are done */
/* if it's a one-shot ...*/
if ( ( CountdownStruct.PeriodicFlag == 0 )
/* or if it's periodic... */
|| ( (
/* ... but the stopwatch event counter reached
&& (SWEventCounter == CountdownStruct.NumRepetitions)
/* If NumRepetitions were 0, we would repeat forever.
If the counter wrapped to zero, we would not stop */
&& (CountdownStruct.NumRepetitions != 0 ) ) )
{
adi_rtc_RemoveCallback( ADI_RTC_EVENT_STOPWATCH );
StopwatchCompleteFlag = 1;
SWEventCounter = 0;
}
else
{
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
CountdownStruct.PeriodicFlag == 1 )
the number of repetitions
Real-Time Clock Service
*/
11-13
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?