Analog Devices VisualDSP++ 5.0 Service Manual page 503

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

Advertisement

StopwatchCallbackInfo.SecondsCounter = 5;
/* stopwatch will happen periodically */
StopwatchCallbackInfo.PeriodicFlag = 1;
/* stopwatch will be re-enabled three times */
StopwatchCallbackInfo.NumRepetitions = 3;
/* point to the structure which contains the information for
the callback */
pStopwatchCallbackInfo = &StopwatchCallbackInfo;
/* the first stopwatch timeout happens to be the same as the
reset stopwatch value, 5 seconds */
NumSeconds = StopwatchCallbackInfo.SecondsCounter;
/* install the stopwatch callback */
adi_rtc_InstallCallback(ADI_RTC_EVENT_STOPWATCH,
(void*)pStopwatchCallbackInfo, NULL, RTCCallback,
(void*)NumSeconds );
/* wait for the stopwatch event to occur. After 5 seconds it
will repeat three times. */
while( StopwatchCompleteFlag == 0 );
/* arrive here after 20 seconds */
}
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
Real-Time Clock Service
11-15

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?

Table of Contents