Analog Devices VisualDSP++ 5.0 Service Manual page 502

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

Operation
/* the else condition means it is periodic, and either the
repetitions are unlimited or the count has not yet
reached number of repetitions, so we re-enable the event */
adi_rtc_ResetStopwatch(
}
/* done */
break;
}
In the main function of the example, a callback is installed for the stop-
watch event. It takes a total of 20 seconds for the event to complete. The
pertinent sections of the function are shown here.
main()
{
int NumSeconds;
int* pNumSeconds;
/* to pass information when installing stopwatch callback */
STOPWATCH_INFO StopwatchCallbackInfo;
/* and a pointer to it */
STOPWATCH_INFO* pStopwatchCallbackInfo;
/* the example initializes system services including the real
time clock service*/
Result = adi_ssl_Init();
/* zero this flag */
StopwatchCompleteFlag = 0;
/* initialize the static stopwatch event counter */
SWEventCounter = 0;
/* When re-enabled, the stopwatch will be set for 5 seconds*/
11-14
CountdownStruct.SecondsCounter );
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents