adi_rtc_ResetStopwatch()
Description
The
adi_rtc_ResetStopwatch
event without reinstalling the stopwatch callback function. It can be called
from inside or outside the callback, but it cannot be called unless a call-
back has been installed. The stopwatch event is a "one-shot" event but it
may be used as a periodic event by calling this function after the stop-
watch event has occurred once and the callback has executed (or is
executing). This function sets the
value and re-enables the event by writing to the
Prototype
ADI_RTC_RESULT adi_rtc_ResetStopwatch(
u32 NumSeconds
);
Arguments
A single value is passed to the function which indicates the number of sec-
onds in the next duration of the stopwatch period.
Return Value
ADI_RTC_RESULT_SUCCESS
Any other value
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
Real-Time Clock Service
function is used to re-enable a stopwatch
register with the
RTC_SWCNT
RTC_ICTL
No error has been encountered.
Error has occurred.
See
Table 11-4 on page 11-30
NumSeconds
register.
for a list of return codes.
11-27
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?