Removing Callbacks - Analog Devices VisualDSP++ 5.0 Service Manual

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

Advertisement

Operation
case ADI_TMR_GP_TIMER_1:
case ADI_TMR_CORE_TIMER:
case ADI_TMR_WDOG_TIMER:
break;
}
}
When the callback function is invoked, the
value given when the callback was installed, the
ADI_TMR_EVENT_TIMER_EXPIRED
timer ID that triggered the callback. This example passes in a NULL for
the deferred callback service handle, so callbacks are live.

Removing Callbacks

Should an application no longer need the callback, it can remove the
callback without affecting the other timer settings. The following frag-
ment illustrates how to remove the callbacks.
Result = adi_tmr_RemoveCallback(ADI_TMR_GP_TIMER_0);
Result = adi_tmr_RemoveCallback(ADI_TMR_GP_TIMER_1);
Result = adi_tmr_RemoveCallback(ADI_TMR_CORE_TIMER);
Result = adi_tmr_RemoveCallback(ADI_TMR_WDOG_TIMER);
8-14
// ClientHandle = 0x00000000
break;
// do processing when gp timer 1 expires
// ClientHandle = 0x11111111
break;
// do processing when core timer expires
// ClientHandle = 0x22222222
break;
// do processing when watchdog timer expires
// ClientHandle = 0x33333333
value, and the
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
parameter is the
ClientHandle
is the
Event
parameter contains the
pArg

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