Peripheral Timer Functions; Adi_Tmr_Getperipheralid; Callbacks - Analog Devices VisualDSP++ 5.0 Service Manual

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

Advertisement

The list of command IDs applicable to the watchdog timer and the
corresponding command-specific parameters are described in
"ADI_TMR_WDOG_CMD" on page

Peripheral Timer Functions

The functions described in this section are used for the general-purpose
timers and watchdog timers only. Passing a core timer ID to these func-
tions results in an error being returned to the caller.

adi_tmr_GetPeripheralID

The
adi_tmr_GetPeripheralID()
peripheral ID for the specified timer. While not normally required, this
function may be useful if finer granularity of interrupt control logic than
what is provided by the timer service is required. The peripheral ID value
can be passed to functions in the interrupt service. Note that the core
timer does not have an associated peripheral ID because the core timer
mapping to an IVG level is fixed. Regardless, the core timer ID may still
be passed to this function, and the function does not return an error.
Refer also to
"adi_tmr_GetPeripheralID" on page

Callbacks

Like other system services, the timer service uses a callback mechanism in
order to notify the client of asynchronous events, such as a timer expiring.
Callbacks can be used on all types of timers: general-purpose timers, core
timers, and watchdog timers.
The Blackfin processor's timers can be configured to generate interrupts.
The timer service provides an internal interrupt handler that processes
interrupts from the timer hardware. This interrupt handler makes the
appropriate callbacks into the client's application. When a client installs a
timer callback, a parameter to the function dictates if the callback is live or
deferred. Live callbacks mean that the client's callback function is called at
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
8-34.
function can be called to identify the
8-29.
Timer Service
8-7

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