Associated Macros - Analog Devices VisualDSP++ 5.0 Service Manual

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

Advertisement

For example, the following code fragment illustrates how to open all
general-purpose timers.
u32 i, TimerID;
ADI_TMR_RESULT Result;
for (i = 0; i < ADI_TMR_GP_TIMER_COUNT; i++) {
TimerID = ADI_TMR_CREATE_GP_TIMER_ID(i);
Result
For most functions in the timer service API, a single timer ID value is
passed to the function to identify the timer being addressed. However, the
adi_tmr_GPGroupEnable()
logical ORing of multiple timer ID values as a parameter. The structure of
the timer ID value allows the single passed-in parameter to identify multi-
ple general-purpose timers to the function.

Associated Macros

These macros are defined for internal use by the timer service.
ADI_TMR_CREATE_GP_TIMER_ID
ADI_TMR_CREATE_CORE_TIMER_ID
ADI_TMR_CREATE_WDOG_TIMER_ID
ADI_TMR_GET_TIMER_INDEX
ADI_TMR_GET_GP_TIMER_MASK
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
= adi_tmr_Open(TimerID); }
function can take a single timer ID value or a
Creates a timer ID given a general-purpose timer
index.
Creates a timer ID given a core timer index.
Creates a timer ID given a watchdog timer index.
Gets the timer index given a timer ID.
Gets the mask for a general-purpose timer(s) given
a single timer ID or logical ORing of multiple
timer IDs.
Timer Service
8-31

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?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents