Operation
u32 NumRepetitions;
stopwatch */
} STOPWATCH_INFO;
In the example, a callback function is provided called
handles all the real-time clock events. (Only the processing of the
event is shown here.) The callback function accepts three
WATCH
arguments:
void
*ClientHandle
u32
EventID
void
*pArg
The
ClientHandle
the
adi_rtc_InstallCallback
The interrupt handler passes this argument to the callback function when
the interrupt occurs. The
events generated the callback, in this case, the stopwatch event. The
is a flexible argument, defined as type
pass any pertinent information the callback needs to process the event.
The callback performs a switch on the
ment that proceeds according to the
the callback sees that the
adi_rtc_ResetStopwatch
value to set the stopwatch counter.
Seconds
Below is a code example from within the callback function where the stop-
watch event is processed.
static void RTCCallback ( void *ClientHandle,
{
STOPWATCH_INFO CountdownStruct =
11-12
/* how many times to re-enable the
contains the structure that was passed as a parameter to
function when the callback was installed.
specifies which of the eight possible
EventID
EventID
flag is set, so it calls the
periodic
function to re-enable the event, using the
u32 Event,
void *pArg )
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
RTCCallback
and reserved for the service to
void*
and executes a case state-
EventID
. For the stopwatch event,
which
STOP-
pArg
Num-
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?